in reply to filter denies existence of input

You don't pass any command line parameter to your script, so it's not surprising that $ARGV[0] and thus $email are undef.
Perl 6 projects - links to (nearly) everything that is Perl 6.