Nov 12, 2006 #1 donny750 Programmer Joined Jul 13, 2006 Messages 145 Location FR hello , i've ths script with a sub; in this sub i call an array but the not run good; it returns me just the first element in the array; I don't know why Code: my @tab = (... ); sub test { my @mytab = shift; .. } &test(@tab); [code]
hello , i've ths script with a sub; in this sub i call an array but the not run good; it returns me just the first element in the array; I don't know why Code: my @tab = (... ); sub test { my @mytab = shift; .. } &test(@tab); [code]
Nov 13, 2006 Thread starter #2 donny750 Programmer Joined Jul 13, 2006 Messages 145 Location FR resolved just make this Code: my @mytab= @_; Upvote 0 Downvote