On Sat, Apr 06, 2002 at 10:12:46PM -0700, Rob 'Feztaa' Park wrote: > > Here you go: > > while (<STDIN>) > { > if (m/<the regex you are testing>/) > { > print "It matches!\n"; > } > else > { > print "It doesn't match!\n"; > } > }
i would suggest you pass in both the regex and the email. that way you won't have to be editing the script all the time. something like: $regx = $ARGV[0]; $thingy = $ARGV[1]; if ( $thingy =~ m/$regx/ ) { print "yes\n"; } else { print "no\n"; } -- Peter Abplanalp Email: [EMAIL PROTECTED] PGP: pgp.mit.edu
msg26849/pgp00000.pgp
Description: PGP signature