but in this case you can or all possible paths in a regex,
=~ m/^$path1|$path2|...etc/
and because of automatic Trie optimization this will be significantly faster than checking in a loop.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^2: In place replacement from reference list
by LanX
in thread In place replacement from reference list
by Misstre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |