in reply to Re: dir match, dir may or may not appear
in thread dir match, dir may or may not appear
As a general thing don't use | as a regex delimiter because it is the alternation (or) character. It allows you to match cat or dog m~cat|dog~ for example.
Premature optimization is the root of all job security
In Section
Seekers of Perl Wisdom