Re: [Perl-unix-users] Sending array as a refference to a Sub

2005-10-23 Thread $Bill Luebkert
eyal edri wrote: > Hi, > > i want to know how can i send an array (@array) as reference to a sub > routine. > Just like in java or c# for eg: > > sub doSomething() > { > my $item; > push ($_[0], $item); > } > > #main > > doSomething (@array); > print @array; -- > i should now see it

[Perl-unix-users] Sending array as a refference to a Sub

2005-10-23 Thread eyal edri
Hi, i want to know how can i send an array (@array) as reference to a sub routine. Just like in java or c#  for eg: sub doSomething() { my $item; push ($_[0], $item); } #main doSomething (@array); print @array;  -- > i should now see item printed. thank you.-- Eyal Edr