> Note that you'll match on dudette and joeshmoe ... if you want an exact
> match, you could do:
> 
> print "$_\n" if (/^joe|dude$/);

I guess you ment:

print "$_\n" if (/^(?:joe|dude)$/);

Otherwise it matches if it begins with 'joe' or ends
with 'dude'.

/Stefan

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

Reply via email to