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

Re: trim function example for perlfaq4.pod

Thread Previous | Thread Next
David Nicol
April 9, 2010 22:07
Re: trim function example for perlfaq4.pod
Message ID:
On Fri, Apr 9, 2010 at 7:55 PM, Tom Christiansen <> 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 Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About