swaroop.m has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use strict; my @arrTest = (1,2,3); my @arrTest2 = (4,5,6); &GetData (\@arrTest , \@arrTest2 ); sub GetData { my ($messages, $count) = @_; # print the count; foreach (@ {$messages}) { print "$_! \n"; } # print the count; foreach (@ {$count}) { print "$_! \n"; } }
Edit: code tags (davorg)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help Pass array as function params
by davorg (Chancellor) on Aug 19, 2004 at 09:24 UTC | |
|
Re: Help Pass array as function params
by NetWallah (Canon) on Aug 19, 2004 at 13:20 UTC | |
|
Re: Help Pass array as function params
by ikegami (Patriarch) on Aug 19, 2004 at 17:24 UTC |