Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: How to trim a line from leading and trailing blanks without using regex or non-standard modulesby hippo (Bishop) |
on Aug 14, 2020 at 06:46 UTC ( [id://11120710]=note: print w/replies, xml ) | Need Help?? |
without resorting to regular expressions (which are definitely an overkill for this particular purpose)? Sure, just write your own function to do it. Having written that you will then come to the conclusion that regular expressions are definitely not an overkill for this particular purpose. This is clearly an important special case. ... which clearly is an abuse of regex. You keep using that word. I don't think it means what you think it means. 🦛
In Section
Seekers of Perl Wisdom
|
|