in reply to Alternation in pattern matches
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 ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Alternation in pattern matches
by guha (Priest) on Feb 19, 2004 at 09:12 UTC |