Keep It Simple, Stupid | |
PerlMonks |
Re^4: remove first and last character of stringby syphilis (Archbishop) |
on Oct 14, 2020 at 10:46 UTC ( [id://11122824]=note: print w/replies, xml ) | Need Help?? |
$s = substr $s, 1, -1; Nice. I didn't know that would work. I would have done it as: But I've read the documentation, now ;-) Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|