Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: process array with while loop

by jbert (Priest)
on Nov 09, 2006 at 18:44 UTC ( [id://583187]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print scalar <tt?>, "\n" for 1..3;
    # prints tt1, tt2 and tt3
    
  2. or download this
    print scalar <tt?>, "\n";
    print scalar <tt?>, "\n";
    print scalar <tt?>, "\n";
    # prints tt1, tt1, tt1
    
  3. or download this
    my $s = sub { return scalar <tt?>; };
    print $s->(), "\n";
    print $s->(), "\n";
    print $s->(), "\n";
    # prints tt1, tt2, tt3
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-25 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found