Hello,
according ti the ruby core docu Kernel#sprintf:
For string fields, the precision determines the maximum number of
characters to be copied from the string. (Thus, the format sequence
%10.10s will always contribute exactly ten characters to the result.)
my irb:
irb(main):004:0> sprintf("%2s", "lalaa")
=> "lalaa"
irb(main):005:0> sprintf("%2i", 1212)
=> "1212"
ruby 1.8.3 (2005-09-21) [i686-linux]
What s my mistake?
So long
···
--
Michael 'entropie' Trommer; http://ackro.org
ruby -e "0.upto((a='njduspAhnbjm/dpn').size-1){|x| a-=1}; p 'mailto:'+a"