in reply to Trimming whitespaces methods
my @arr = (q{ one }, q{ two three }); for (@arr){ my $trimmed = join q{ }, split; printf qq{*%s*\n}, $trimmed; }
*one* *two three*
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Trimming whitespaces methods
by johngg (Canon) on Jun 30, 2008 at 15:37 UTC | |
by jwkrahn (Abbot) on Jun 30, 2008 at 23:02 UTC |