Larry Wall skribis 2005-03-12 15:55 (-0800):
> Well, we do already have:
>     print $foo.as('%03d'), $bar.as('%15s')
> which works on interpolated values as well.  It als puts the variable
> name out front, since the name is more important than the pattern in
> most cases.

It puts the variable name out front, which is great, but it also puts
the second variable name allll the way to the right, after the line
noise.

> I don't see that this buys us anything over just shortening "sprintf"
> to something shorter, like:
>     print as '%03d %15s', $foo, $bar;

I like it, although in more complex lists, it still requires the parens
that I so like to avoid. I could certainly live with a list op as short
as 'as', though! 


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Reply via email to