I think this is what the OP was looking for:

if(/^(everywhere|nowhere)/){
   do something...
}

-----Original Message-----
From: Toby Stuart [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 17, 2003 9:01 PM
To: '[EMAIL PROTECTED]'
Cc: '[EMAIL PROTECTED]'
Subject: RE: Using alternatives and anchors

use strict;
use warnings;

open(F,'path\to\myfiles') || die "Cannot open: $!";
while(<F>)
{
        print if /everywhere|nowhere/;
}
close(F);


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to