Don't ask to ask, just ask | |
PerlMonks |
Re^2: Searching for files efficiently help!by Anonymous Monk |
on Nov 16, 2011 at 19:02 UTC ( [id://938439]=note: print w/replies, xml ) | Need Help?? |
I have a question for you, if the values in this array @filelist was like this:my @filelist = qw(88732 99877 76211); I would have to match if these values are part of these file names in array @files, how would the regular expression be in this case. In another words matching values from @filelist against values in in the array @files that would be like this:
my @files = qw(99877_bc_20101000.txt 99877_xy_20111111.txt 76211_bc_20101000.txt); I hope I was clear on that. Thanks!
In Section
Seekers of Perl Wisdom
|
|