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
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