Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Loops, the scalar range operator, and objects

by mstone (Deacon)
on Dec 22, 2001 at 02:26 UTC ( [id://133899]=perlmeditation: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @digits = (0..9);
    
  2. or download this
    while ($data = &func) {
        &munge ($data);
    }
    
  3. or download this
    if (&setup) {
        while ($data = &advance) {
    ...
    } else {
        ##  life sucks
    }
    
  4. or download this
    while (&setup_and_teardown .. &advance) {
        &munge (&get_data);
    }
    
  5. or download this
    #!/usr/bin/perl -w
    
    ...
        }
        print "========  end $i\n\n";
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (2)
As of 2024-04-19 21:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found