in reply to Regex delimiters: '/' vs '|'

What does Basic debugging checklist say about it? ( O=Deparse and re=debug )

You should stick to m// or s/// or m{} or s{}{} because
while you can use s\\\ or s@@@ or s### as delimiters they're the worst option available
while you can use s\\\ or s@@@ or s### as delimiters they're the worst option available
while you can use s\\\ or s@@@ or s### as delimiters they're the worst option available
Perl::Critic::Policy::RegularExpressions::ProhibitUnusualDelimiters - Use only // or {} to delimit regexps.
Perl::Critic::Policy::ValuesAndExpressions::ProhibitQuotesAsQuotelikeOperatorDelimiters - Don't use quotes (', ", `) as delimiters for the quote-like operators.

  • Comment on Re: Regex delimiters: '/' vs '|' ( m// or s/// or m{} or s{}{} )

Replies are listed 'Best First'.
Re^2: Regex delimiters: '/' vs '|' ( m// or s/// or m{} or s{}{} )
by tel2 (Pilgrim) on Oct 03, 2014 at 03:47 UTC
    OK - thanks Anonymous Monk!