in reply to Returning array values
This
#return @found; # this does not return correctly.
returns an array a list. This
#return [qw/One Two Three/]; #this will return correctly.
returns an array reference. I recommend you go with
return \@found; # this ought to work.
Update: corrected first return type. Thanks podmaster.
|
|---|