sorry about that. a bit too quick on the trigger finger. I have the
following:
@files = grep { /^ccs_[cas|pri|atsm]/ && -f "$dir/$_" } readdir(DIR);
There are other files in $dir that start with ccs but I only want ccs_cas ccs_pri or ccs_atsm but for some reason it seems to also match a filename that starts with ccs_trsum. What am I doing wrong?
-----Original Message-----
From: Peter Eisengrein
Sent: Monday, February 21, 2005 5:02 PM
To: Perl-Win32-Users Mailing List (E-mail)
Subject: regex confusion...Hey gang... having a bit of a regex conundrum. I have the following statement:
_______________________________________________ Perl-Win32-Users mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
