Which is the preferred way?

J

Jeffrey Bowen

I see that “p” is the same as “puts”. Which would
most programs use in a program?

Jeff



____________________________________________________________________________________
Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.
http://farechase.yahoo.com/
 
A

Alex Young

Jeffrey said:
I see that “p” is the same as “puts”. Which would
most programs use in a program?
It's not the same - p foo is equivalent to puts foo.inspect. They're
used for different things; p is for debugging output, puts for general
text display.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top