in reply to qr// and user provided regex patterns...
The main problem is in if($text =~ $pattern){
You need to put $pattern between slashes like /$pattern/
++ to ikegami I didn't know that. Maybe because I usually match against $_ and so have seldom the need for =~
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: qr// and user provided regex patterns...
by ikegami (Patriarch) on Jul 30, 2009 at 06:40 UTC |