Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the RoR Ruby on Rails section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old September 1st, 2010, 05:27 PM
Registered User
Join Date: Jun 2010
Location: Dublin, Ireland
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
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)

Similar Threads
Thread Thread Starter Forum Replies Last Post
Chomp ZORCH Perl 1 May 14th, 2007 05:54 AM
ruby on rails>>chomp ckonrad BOOK: Beginning Ruby on Rails 4 March 28th, 2007 02:24 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.