Re: String trim method

2015-08-06 Thread Tom Browder
On Thu, Aug 6, 2015 at 2:23 AM, Brent Laabs wrote: > I think the optimal way would be: > >my $s = 'yada yada'; > > That way the program won't have to trim the whitespace off the string every > time it is run. > > In the more general case, I might do it something like: > > my $s = something-

Re: String trim method

2015-08-06 Thread Brent Laabs
I think the optimal way would be: my $s = 'yada yada'; That way the program won't have to trim the whitespace off the string every time it is run. In the more general case, I might do it something like: my $s = something-returning-a-string().trim; But I don't think that there really is a