in reply to Re: Regex Problem
in thread Regex Problem
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Regex Problem
by FunkyMonk (Bishop) on Aug 01, 2007 at 18:14 UTC |