in reply to Help with perl syntax
Your double-regex check would work if you put multiple conditions in your if or unless statements. It's not the best option in this case, but it will work in other situations:
next READ if (/^\s*#/ and !(/^\s*#!/));
With the and (or &&), both conditions have to be true. The second is negated (with the leading !), so it achieves the same thing as the single regex.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: Re: Help with perl syntax
by zzspectrez (Hermit) on Oct 29, 2000 at 03:33 UTC |