email55555 email55555 wrote:
> Here is my solution:
> 
> #!/usr/bin/env ruby
> # Program : Ruby Quiz #14 LCD Numbers
> (http://www.grayproductions.net/ruby_quiz/quiz14.html)
> # Author  : David Tran
> # Date    : 2005-01-07  [cut]

David a few things that I have noticed while running the program.
It's missing a # in front of (http://...) but this is trivial of course :-).

If I launch the program without arguments I get:

../lcd.rb:61: Usage:  ./lcd.rb [-s size] number (RuntimeError)

The (RuntimeError) shouldn't be there. Furthermore if you pass a string 
like 123CIAO4 it will output 12300004. You can check more strictly for 
the input given to the program and print something like "1234CIAO4 is 
not a valid number" or as you wish.

HTH
Cheers,
Antonio
-- 
My programming blog: http://www.antoniocangiano.com