Rabs wrote: > > I am new to regualr expressions and becoming accqainted with the =~ > operator. It appears to me that the =~ allows me to match a pattern in a > REGEX against a variable.
Yes. > As such it replaces the $_ varible. No, a regular expression will not replace anything and does not affect the $_ variable. > $name =~ /[rabs]/; Anything between the [ and ] is a character class not a regular expression. > mtaches with a string containing any of the following characters r a b s > > is this correct? I am quite confused.... Yes. John -- use Perl; program fulfillment -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]