That looks a little weird with the minus in the middle of the character class. Makes it look like a range. I'd sooner write that as
if ( $dir =~ /[^\w-]/ ) {• another intruder with the mooring in the heart of the Perl
In reply to Re^2: Regex Problem
by grinder
in thread Regex Problem
by nimdokk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |