![]() |
|
|
+ Search |
![]()
|
Jun 16th, 2001 05:57
Per M Knutsen,
A common beginner's error is to pre-cede the variable with an
exclamation mark, as this:
if (!$string =~ m/^\.+&/ ) {
...
}
when actually what should be done is to replace the equal sign with the
exclamation mark, thus:
if ($string !~ m/^\.+&/ ) {
...
}