[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: How would this Perl script look in Ruby?

Brian Candler

8/28/2008 12:38:00 PM

> Can somebody please me tell the way to write this script in Ruby?

Certainly.

1. In one window, open a text editor.

2. In another window open your Ruby documentation, for example
http://www.rub...
or buy and open a book such as
http://www.pragprog.com/titles/ruby/progra...

(ditto if you need Perl documentation to understand the original script)

3. Type in your Ruby program.

4. Run it.

If you get stuck at point 4 - for example if your program doesn't work in
the way you expect it - then feel free to come back to this mailing list
with a specific question. Show the piece of Ruby code which is failing,
together with the complete error message, and everything you've done to try
to work out what is happening. Include information on the version of Ruby
and the platform you're running under (i.e. operating system version)

For more information on this process, see
http://www.catb.org/~esr/faqs/smart-questions....

Anything that looks like (a) a homework assignment, or (b) something which
your employer has asked you to do, but you couldn't be bothered even to
attempt yourself, is likely to be ignored.

HTH,

Brian.