No such thing as a small change | |
PerlMonks |
Re^2: How do I replace \t and regarding to the alignment requirement ?by AnomalousMonk (Archbishop) |
on Apr 22, 2012 at 16:02 UTC ( [id://966476]=note: print w/replies, xml ) | Need Help?? |
... @LAST_MATCH_START variable ... an evil which tainted any other regex ... You may be thinking of $& ($MATCH) and friends ($` and $'). While @LAST_MATCH_START (@-) may share in the general overhead associated with capturing, I am not aware that it is touched by the evil of $& and its ilk. And with 5.10+, the incantation of the /p regex modifier can raise even $` $& $' to purity as the ${^PREMATCH} ${^MATCH} ${^POSTMATCH} special variables. Oh, happy day!
In Section
Seekers of Perl Wisdom
|
|