Do you know where your variables are? | |
PerlMonks |
Best way to match items in an arrayby ibanix (Hermit) |
on Dec 07, 2002 at 03:46 UTC ( [id://218209]=perlquestion: print w/replies, xml ) | Need Help?? |
ibanix has asked for the wisdom of the Perl Monks concerning the following question:
I have a list of file names in a variable-length @dir_list array. I want to match each item in the array that has some suffix eg .zip, .log, whatever; then I'll have to do some operations on them. What is the most efficent way to do this, since I will be doing a great many of these? I could do this, but is there a better way? Thanks, ibanix $ echo '$0 & $0 &' > foo; chmod a+x foo; foo;
Back to
Seekers of Perl Wisdom
|
|