Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: One more perl programmer's take on Ruby (discussion)

by elusion (Curate)
on Nov 18, 2001 at 06:13 UTC ( [id://126077]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    foreach ($i=3;$i<19;$i++) {
         print $i;
    ...
    3.upto(18) do |i|
         print i
    end
    
  2. or download this
    class Numbers
       def gimme
    ...
    end
    
    Numbers.gimme { |number| puts number }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://126077]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-19 20:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found