We don't bite newbies here... much | |
PerlMonks |
Re^3: String Comparison & Equivalence Challengeby AnomalousMonk (Archbishop) |
on Mar 15, 2021 at 04:28 UTC ( [id://11129643]=note: print w/replies, xml ) | Need Help?? |
$ro->insert(end => join "", map s/^(\d\d)\d*/$1%/r . "\n", @matches[...] );$ro->insert(end => join "", map { do { (my $s = $_ ) =~ s/^(\d\d)\d*/$1%/ . "\n"; $s }, @matches[...] });
Try: Update: ... the s///r pragma.NB: s///r is not a pragma. /r is a modifier (update: available from Perl version 5.14 on) of the s/// operator. Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|