Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Loops, the scalar range operator, and objects

by mstone (Deacon)
on Dec 22, 2001 at 02:26 UTC ( #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
Node Status?
node history
Node Type: perlmeditation [id://133899]
Approved by root
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2016-12-05 18:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (90 votes). Check out past polls.