Re: Quick regex. Q.

2001-12-19 Thread Michael Fowler
On Wed, Dec 19, 2001 at 04:01:07PM +1030, Daniel Falkenberg wrote: > next if $username =~ /^ruby/; > > will that strip and go to the next if statment if $username = ruby? It won't strip anything, and it matches on a username that starts with 'ruby', not if it equals 'ruby'. Use eq for string eq

Re: Quick regex. Q.

2001-12-19 Thread John W. Krahn
Daniel Falkenberg wrote: > > Hey All, > > I just have a really quick regex question. > > I have the following code... > > next if $username =~ /^ruby/; > > will that strip and go to the next if statment if $username = ruby? next only works inside loops like for, foreach, while, etc. It is n