han_perl has asked for the wisdom of the Perl Monks concerning the following question:
================ output =======================@data = ( 22, 33, 44 ); @newdata = ( 55, 66, 77 ); sub passingArray{ @tmp = $_[0]; @newtmp = $_[1]; print "Number of elements tmp: $#tmp\n"; print "tmp1 @tmp\n"; print "Number of elements newtmp: $#newtmp\n"; print "tmp1 @newtmp\n"; } passingArray( @data, @newdata );
Code tags - dvergin 2004-06-22
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing whole array to a function
by borisz (Canon) on Jun 23, 2004 at 00:37 UTC | |
|
Re: passing whole array to a function
by ihb (Deacon) on Jun 23, 2004 at 01:00 UTC | |
|
Re: passing whole array to a function
by Zaxo (Archbishop) on Jun 23, 2004 at 00:43 UTC | |
|
Re: passing whole array to a function
by data64 (Chaplain) on Jun 23, 2004 at 00:49 UTC |