I am new to programming and am trying to follow an example which uses #! comment in ruby.
I am consistently get the message: bash: matz.rb: command not found
I am using this comment: #! /usr/bin/env ruby
I have tried it with and without the space after ! as well as with and without the env.
when I use the $ which ruby
ruby is in: /usr/bin/ruby
I have also gone into the operating system and changed the permissions on the file matz.rb to rwx for all users w/ no effect. Am I doing something wrong or do I have my system set up incorrectly?