in reply to passing arrays
You aren't passing anything into the sub csv
Check out perlsubmy @array = ( 1, 2, 3, 4, 5 ); csv( @array ); # pass array into csv sub csv { my @passed_array = @_; # reteive array from @_ foreach (@array) { print "$_\n"; } }
Also:
Please reduce your question to the smallest example of your problem. This not only saves us from having to dig through irrelevant code to find your real problem, but a good portion of the time you'll answer it yourself.
Update: added Also section
grep
One dead unjugged rabbit fish later...
One dead unjugged rabbit fish later...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: passing arrays
by ScOut3R (Sexton) on Apr 19, 2008 at 17:40 UTC | |
by grep (Monsignor) on Apr 19, 2008 at 17:47 UTC | |
by ScOut3R (Sexton) on Apr 19, 2008 at 18:02 UTC |
In Section
Seekers of Perl Wisdom