Re: What are the uses of the =~ operator?

2002-01-16 Thread Steven Brooks
On Wednesday 16 January 2002 03:56 pm, 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. As such it replaces the $_ varible. $name =~ /[rabs]/; mtaches with a

Re: What are the uses of the =~ operator?

2002-01-16 Thread John W. Krahn
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