Steve Klabnik wrote in post #1011390:
> I personally find % cleaner than printf:
>
> puts "%03d" % val

Why is that?  As soon as you start using this with multiple arguments it
will look ugly:

puts "%03d: %-30s [%4d]\n" % [val, label, level]

vs.

printf "%03d: %-30s [%4d]\n", val, label, level

Plus, printf is potentially more efficient since the implementation does
not need to create a Ruby String object (which is what happens with %
which is basically just a short notation for sprintf).

Kind regards

robert

-- 
Posted via http://www.ruby-forum.com/.