develooper Front page | perl.perl5.porters | Postings from September 2011

Re: [perl #100190] RFE: fix sprintf to be consistent with printf and be useful!

Thread Previous | Thread Next
From:
jvromans
Date:
September 29, 2011 22:53
Subject:
Re: [perl #100190] RFE: fix sprintf to be consistent with printf and be useful!
Message ID:
20101.22837.560068.912680@phoenix.squirrel.nl
[Quoting Eric Brine, on September 29 2011, 18:21, in "Re: [perl #100190] R"]
>      sub my_printf { print ">> " . sprintf(@_) }
>     but need
>      sub my_printf { print ">> " . sprintf( $_[0], @_[1..$#_] ) }
> 
> Except the same thing applies to every single builtin (e.g. length,
> splice, substr, exit, etc.)

Which, IMNSHO, indicates there's something counter-intuitive with the
way these builtins are handled.

-- Johan

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