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
In reply to Re: Problem with ampersand and regex
by davido
in thread Problem with ampersand and regex
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |