in reply to What is wrong here (Replacing Strin pieces)
It is possible, but I am not sure it is comprehensible. I would not recommend it for production code:
$string =~ s/\A(-+)|(-+)$/("?" x length $1).("?" x length $2)/eg;
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: What is wrong here (Replacing Strin pieces)
by AnomalousMonk (Archbishop) on Jul 16, 2013 at 16:23 UTC |
In Section
Seekers of Perl Wisdom