ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.


AddThis Social Bookmark Button
  Building Unix Tools with Ruby
Subject:   don't forget "puts"!
Date:   2003-09-21 04:21:21
From:   dblack
Don't forget the "puts" method. In Ruby, you don't have to do all that

print str, "\n"


print "string\n"

stuff. Using puts is shorter and cleaner, and will help deflect some of the criticisms about writing Ruby in a Perl style :-)