laziness, impatience, and hubris | |
PerlMonks |
Re: Re: Re: regex for assignmentby merlyn (Sage) |
on Feb 27, 2001 at 04:45 UTC ( [id://60995]=note: print w/replies, xml ) | Need Help?? |
Actually, it's not "or", it's "and". I'm checking for both a good $base and $ext implicitly, or rather, I don't need to check. If the regex matches, both $base and $ext will be set properly. If the regex fails, the match list length is 0, and the if fails.
-- Randal L. Schwartz, Perl hacker
In Section
Seekers of Perl Wisdom
|
|