XP is just a number | |
PerlMonks |
Re: remove first and last character of stringby GrandFather (Saint) |
on Oct 14, 2020 at 03:12 UTC ( [id://11122805]=note: print w/replies, xml ) | Need Help?? |
Prints:
Note that the single quotes are added in the print to demonstrate that there are no "hidden" characters like spaces or line breaks included in the string. Update: fix $str quoting issue pointed out by LanX.
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
In Section
Seekers of Perl Wisdom
|
|