in reply to Problem with ampersand and regex
use warnings;: "Possible unintended interpolation of @123..."
Use single quotes: my $line = 'mail: asdf@123.com'; and see if that clears it up for you.
use strict; doesn't catch this one because it treats "digit" variables special, and allows them without declaration.
Dave
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Problem with ampersand and regex
by Anonymous Monk on Dec 19, 2012 at 20:21 UTC | |
by davido (Cardinal) on Dec 19, 2012 at 20:24 UTC | |
by Anonymous Monk on Dec 19, 2012 at 20:30 UTC | |
by frozenwithjoy (Priest) on Dec 19, 2012 at 21:18 UTC |