I find this way to be pretty fast on windoze, can someone benchmark it?
#!/usr/bin/perl -w use strict; my $val=" Smart Way "; $val = join (" ",split " ",$val); print '>'.$val.'<'; # shld give me >Smart Way<
|Replies are listed 'Best First'.|
Re: Re: Re: remove both leading and trailing spaces
by softworkz (Monk) on Sep 26, 2003 at 17:02 UTC
by the_0ne (Pilgrim) on Sep 26, 2003 at 20:46 UTC