next if /^#/ or /^\s*$/ or length < $min_useful_length or /^REM/ or not /^.{3}\d{4}/ ...
...
... that removes the opportunity to document the business rules ...
next if /^#/ # document this or /^\s*$/ # document this too or length < $min_useful_length # and this one or /^REM/ # and so on ... or not /^.{3}\d{4}/ # ... ... ;
... but I am sometimes very (unpleasantly) surprised by interactions between the very lowest level | precedence logical operators and other expressions (but I can't seem to come up with a good example), so maybe individual statements are better after all.
In reply to Re^4: Remove blank lines from REGEX output
by AnomalousMonk
in thread Remove blank lines from REGEX output
by Deep_Plaid
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |