Hi Robert!

> This typically involves Ruby's command line options -e and -n or -p. A few ways
> ...
Thank you!

> 'unless /../;$_=nil end'
So you can leave out the then ? ok, but I'ld prefer to have fixed syntax in a language
(sometimes do or begin (not interchangeable), some ends without begin... - thats confusing)

Another question:
Is there a better way than eval to convert "number" data to its contents?
x="3"	=> .to_i y=3
x="3.3" => y=3.3
x="0xa" => ? # y=16
like printf with auto-detection of thze type

Opti


Unsubscribe: <mailto:ruby-talk-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-talk>