Re: perlfaq4: How do I strip blank space from the beginning/end of a string?

[email protected] (Steven Schubiger) Fri, 1 Apr 2005 01:23:18 +0200 (CEST)
Newsgroups perl.perlfaq.workers
Message-ID <[email protected]>
On 31 Mar, _brian_d_foy wrote:

:    while( <> )
:       {
:       s/^\s+|\s+$//g;
:       print "$_\n";
:       }

Shouldn't we stick to perlstyle in terms of indentation width?

Steven Schubiger