in reply to Backslashed "@" in reg exes
LWP::RobotUA may not need it there. But for longer strings, it's just a good habit to be in. For example,
you'll getif ($string =~ m/@a/) {
as a warning message under use warnings; (which you are doing, right?). But with the \, you'll get exactly what you wanted - an @-sigil followed by the letter a.Possible unintended interpolation of @a in string at ./y.pl line 7.
|
|---|