more useful options | |
PerlMonks |
Re: Having issues with substitutionsby Your Mother (Archbishop) |
on Feb 05, 2019 at 18:03 UTC ( [id://1229427]=note: print w/replies, xml ) | Need Help?? |
choroba is always right. Here's more to consider–
local and a scope block to protect $_. \U\E to uppercase and end. You could also do raw Perl in the right side of the s///e if you include the e for execute flag. say by itself because $_ is implied.
In Section
Seekers of Perl Wisdom
|
|