|more useful options|
@ in regex, or not?by JPaul (Hermit)
|on Mar 26, 2001 at 20:50 UTC||Need Help??|
JPaul has asked for the wisdom of the Perl Monks concerning the following question:
I'm trying to make a regex to match eMail addresses work, which looks something like this:
For some strange reason, the regex fails to match the @ in $entry, and will fail all eMail addresses passed through it.
I assume it has something to do with the fact that @ is the array token - however if I use \@, perl appears to match the eMail address - but complains about an uninitialised value... Which as soon as I drop the @, it stops moaning.
Any bright sparks out there point out whats probably an obvious blunder?
-- Alexander Widdlemouse undid his bellybutton and his bum dropped off --