in reply to Matching text in a string
This: !=~ should be this: !~.
The condition is being seen as $text != ~ m/$firstname/ && $type eq "login", which with warnings enabled would have produced:
!=~ should be !~ at ... Use of uninitialized value $_ in pattern match (m//) at ... Argument $text isn't numeric in numeric ne (!=) at ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Matching text in a string
by hdb (Monsignor) on Apr 16, 2015 at 09:17 UTC | |
by BrowserUk (Patriarch) on Apr 16, 2015 at 09:21 UTC | |
|
Re^2: Matching text in a string
by htmanning (Friar) on Apr 16, 2015 at 09:36 UTC |