I broke it with brackets, parenthetically speaking. 

Thanks all - simple mind making a simple mistake. 



-----Original Message-----
From: Peter Eisengrein [mailto:[EMAIL PROTECTED]
Sent: Monday, February 21, 2005 5:05 PM
To: 'Perl-Win32-Users Mailing List (E-mail)'
Subject: RE: regex confusion...


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:





Message transport security by GatewayDefender
5:05:28 PM ET - 2/21/2005
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to