develooper Front page | perl.perl5.porters | Postings from April 2010

Re: trim function example for perlfaq4.pod

Thread Previous | Thread Next
From:
David Nicol
Date:
April 9, 2010 22:07
Subject:
Re: trim function example for perlfaq4.pod
Message ID:
m2r934f64a21004092206hca28f0d3saaad6bfd1fc1002@mail.gmail.com
On Fri, Apr 9, 2010 at 7:55 PM, Tom Christiansen <tchrist@perl.com> wrote:

>
> No, don't make it an optional *last* argument; that's messy
> and hides what's really going on.  The pattern is the most
> important, so it goes first.  Use the pattern as an optional
> invocant, putting it right out in front where it belongs,
> just as split // has it in front for the same reason:
>

that's how it was in the first revision. Other languages with trim functions
with optional what-to-trim arguments have them after the target.

-- 
question doubt

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About