in reply to Re: Re: regex for assignment
in thread regex for assignment

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