if you are on linux/unix

> works fine.  What am I missing? 

the  ./ (dot slash)  to indicate where you executable resides
$chmod +x hello
$./hello

Robert Peirce wrote:

> Usually I can put
>
> #! /usr/bin/env ruby
>
> in the first line of a script and it works fine.  However, this 
> doesn't work:
>
> #! /usr/bin/env ruby
>
> class Hello
>     attr_reader :msg
>     def initialize
>         @msg = "Hello, World"
>     end
> end
>
> h = Hello.new
> puts h.msg
>
> $ hello
> : No such file or directory
>
> However,
>
> ruby hello
>
>
>
>
> Bob Peirce                                 Venetia, 
> PA                                724-941-6883
> bob / peirce-family.com [HOME (Mac)]
> rbp / cooksonpeirce.com [OFFICE]
>
> There is  only one basic human  right, the  right to do as you damn well
> please.  And with it comes the only basic human duty, the duty to take
> the consequences.  -- P.J. O'Rourke
>
>

-- 
 General Electric - CIAT
 Advanced Engineering Center
 ________________________________________
 Rodrigo Bermejo 
 Information Technologies.
 Special Applications
 Dial-comm :  *879-0644         
 Phone :(+52) 442-196-0644