in reply to I have Values stored in array within Hashes, Can't really call one @ a time
my( @cpp , @php, @perl );
find ( ... \&test );
print join "\n", @cpp, "\n";
sub test {
push @cpp, $File::Find::name if is_cpp($File::Find::name);
push @perl, $File::Find::name if is_perl($File::Find::name);
push @php, $File::Find::name if $File::Find::name if is_php( $File::Find::name );
...
or
ack --help type
my @perl = qx{ack --perl "$startdir"};
my @php = qx{ack --php "$startdir"};
my @cpp = qx{ack --cpp "$startdir"};
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: I have Values stored in array within Hashes, Can't really call one @ a time
by KroKite (Initiate) on May 11, 2012 at 17:36 UTC | |
by Anonymous Monk on May 11, 2012 at 17:58 UTC |