#!/usr/bin/env ruby # This code comes from http://ruby-it.org/pages/Scuse+Frequenti # Check the page for copyright notice and explanations def met(x,y) return x,y end def met(x,y) x+y end def doppio(x) return x*2 end val=gets puts(doppio(val)) #define char int #!/usr/bin/env ruby # Questo file è salvato in utf-8 $KCODE = 'u' require 'jcode' s = "10 €" puts s.length # Stampa 6 puts s.jlength # Stampa 4 # EOF