On Jun 6, David Blevins said:

>    my @list1 = grep(/$year\_$month\_.*01\.txt/,  @allFiles);
>    my @list2 = grep(/$year\_$month\_.*01a\.txt/, @allFiles);

It is safer to use ${year} than $year\_ because there are some letters
which, if backslashed, have entirely different meanings.

-- 
Jeff "japhy" Pinyan      [EMAIL PROTECTED]      http://www.pobox.com/~japhy/
I am Marillion, the wielder of Ringril, known as Hesinaur, the Winter-Sun.
Are you a Monk?  http://www.perlmonks.com/     http://forums.perlguru.com/
Perl Programmer at RiskMetrics Group, Inc.     http://www.riskmetrics.com/
Acacia Fraternity, Rensselaer Chapter.         Brother #734
**      Manning Publications, Co, is publishing my Perl Regex book      **

Reply via email to