in reply to negative regex without !~
In Perl, the following examples are functionally equivilant, though they get to that equivilancy in different ways.
if ( $string !~ m/pattern/ ) { ..... }
And.....
if ( not $string =~ m/pattern/ ) { ...... }
And.....
unless ( $string =~ m/pattern/ ) { ...... }
Does your special language provide you with More Than One Way To Do It? ;)
Dave
|
|---|