View Single Post
  #1 (permalink)  
Old September 1st, 2010, 05:27 PM
barryjogorman barryjogorman is offline
Registered User
Join Date: Jun 2010
Location: Dublin, Ireland
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Skype™ to barryjogorman
Default Problem with 'chomp'

Very simple program:

while($_ != "q")
puts "Running..."
print "Enter q to quit: "

However - getting the following in any progams in which I use 'chomp': 'undefined local variable or method 'chomp' for main: Object (NameError)