in reply to Perl interview questions

Regular Expression in Perl

2. Email id Validation

So, do you require candidates to recite the multi-page regexp from Jeffrey Friedl, or should they be able to recite the BNF-to-pattern one found in the Perl test suite?

Replies are listed 'Best First'.
Re^2: Perl interview questions
by pemungkah (Priest) on Apr 24, 2012 at 23:52 UTC
    For me, I'd suggest either they say, "too hard, I'd use Email::Valid" (to be followed up with "Why do you say that?" to see if they actually know why), or "how much validation do you want?" - just as long as they know it's not trivial. Certainly this is a senior vs. junior weeder question, asked this way.