in reply to sendmail - worried illegal chars

Use Email::Valid for this:

use warnings; use strict; use Email::Valid; my $from_email = 'stevieb <steveb@cpan.org>'; if (! Email::Valid->address($from_email)){ die "that ain't a valid email address!\n"; } ...;

Replies are listed 'Best First'.
Re^2: sendmail - worried illegal chars
by atcroft (Abbot) on Apr 05, 2016 at 21:13 UTC
      [mod://Email::Valid]Email::Valid

      or

      [metamod://Email::Valid]Email::Valid

      ($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,
        Thanks for the heads-up guys!