appendixA. From Perl to Ruby

 
   

Ruby Way
By Hal Fulton
Slots : 1.0
Table of Contents
 


appendix A. From Perl to Ruby

That pearl is from a mine unknown to thee,

That ruby bears a stamp thou canst not see…

The Rubaiyat, Omar Khayyam (trans. Whinfield)

There are other references and books you can read to help you understand Ruby, so this section is going to focus on differences between Ruby and Perl. We provide some tips and warnings for the Perl programmer along the way.

Ruby will lead you to change your focus. You will notice a change in the syntax and organization of your programs. You will use objects to organize your methods. The object model has a cleaner approach, fewer surprises, and a dynamic flexibility you will not find in Perl. Yet there are enough similarities that you should be able to do a number of things in Ruby that look similar to how you do them in Perl.


   

 

 



The Ruby Way
The Ruby Way, Second Edition: Solutions and Techniques in Ruby Programming (2nd Edition)
ISBN: 0672328844
EAN: 2147483647
Year: 2000
Pages: 119
Authors: Hal Fulton

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net