go ahead... be a heretic | |
PerlMonks |
Re^2: Skip quoted string in regexby LanX (Saint) |
on Nov 09, 2015 at 20:59 UTC ( [id://1147292]=note: print w/replies, xml ) | Need Help?? |
Some background... > In the qq(failure_reason <> 'Response=X') example given, you only actually want to split once.) I had the same idea but 3 seemed right, since 3 fields are returned. It's a bit confusing, b/c according to the docs "LIMIT... represents the maximum number of fields the EXPR will be split into". But the middle field originates from the (regex-group) within the $opr_regex. But still, split is the wrong approach here, b/c the LHS could be quoted too.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|