in reply to •Re: subroutines and returning lists...
in thread subroutines and returning lists...
sub blah { @array = match_files(\@array, \%hash); print "@array \n"; } sub match_files { @files = (); my($array, $hash) = @_; my(@array) = @$array; my(%hash) = %$hash; foreach $ary_element (@array) { foreach $hash_key( keys ( %hash )) { # do my comparison here } # if i get a match print "$ary_element\n"; # prints defined value push (@files, $ary_element); return @files; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: •Re: subroutines and returning lists...
by The Mad Hatter (Priest) on Apr 03, 2003 at 22:55 UTC | |
by ATB (Initiate) on Apr 04, 2003 at 15:15 UTC | |
|
Re: Re: •Re: subroutines and returning lists...
by pg (Canon) on Apr 04, 2003 at 04:37 UTC |