Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Avoiding vivification with array slice

by Narveson (Chaplain)
on Sep 09, 2008 at 14:05 UTC ( [id://710093]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use constant N => 3;
    my $counter;
    
    ...
        last ELEMENT if $counter++ > N;
        print "Looking at $val\n";
    }
    
  2. or download this
    Looking at A
    Looking at B
    Looking at C
    

Log In?
Username:
Password:

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

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

    No recent polls found