if ( !/^(foo|bar)/ ) { die "What the heck?!\n"; }