That saves us from having to guess, and removes the risk of our guessing wrong.while ( <DATA> ) { next if /^(?:#.*|\s*)$/; ... } __DATA__ # These should pass TAG:"test of data" ... # These should fail TAG: test ...
In reply to Re: Alternation in pattern matches
by dws
in thread Alternation in pattern matches
by guha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |