Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • /\w*@\w*.\w*/ is broken as it won't match a lot of valid emails and will match some garbage :)

    You should look at Email::Valid and/or use something like /^\S+\@\S+\.\S+$/ and check for valid emails by sending one containing some kind of auth code.

    • I knew it wouldn't match a lot of emails, but didn't realize until just now when you pointed it out that it would match invalid emails too. :\ Good thing this isn't production, I guess...

      I hadn't settled on anything yet; I want to grok the validation sub in the Mouse and check some other options before I decide on anything. (Whatever it is, I want to make sure it's fairly airtight. I'd like to impress Mike with this if it's at all possible.)


      You are what you think.