|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re^2: remove chars with regexby Anonymous Monk |
| on Feb 26, 2025 at 15:32 UTC ( [id://11164093]=note: print w/replies, xml ) | Need Help?? |
|
FWIW, the second substr ... (for the last 6 characters) could be substr( $char, -6 ). Negative offsets are from the end, and if you omit the length you get all of the string after the start position.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||