fork(1) download
  1. #!/usr/bin/perl
  2. # your code goes here
  3.  
  4. my $e = 'evans.tab.co.nz';
  5.  
  6. if ($e =~ /(.*)\@(?:nzrb\.co\.nz|nzracingboard\.co\.nz|tab\.co\.nz)$/)
  7. {
  8. print "Yes";
  9. }else
  10. {
  11. print "NO";
  12. }
Success #stdin #stdout 0s 17496KB
stdin
Standard input is empty
stdout
NO