in reply to Re^2: Text::ExtractWords exhibits incomprehensible behavior?
in thread Text::ExtractWords exhibits incomprehensible behavior?
So, I could create a version of `trim` that was more `chomp`-like?
sub mytrim { $_[0] =~ s/^\s+|\s+$//g; } my $text = ' this could use a trim. '; mytrim $text;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Text::ExtractWords exhibits incomprehensible behavior?
by NERDVANA (Priest) on Jun 18, 2024 at 00:44 UTC | |
by ibm1620 (Hermit) on Jun 18, 2024 at 14:05 UTC |