Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^3: Using an array element as a loop iterator

by Kenosis (Priest)
on Nov 07, 2013 at 23:36 UTC ( [id://1061641]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Using an array element as a loop iterator
in thread Using an array element as a loop iterator

The question's ambiguous because it's not well formed (with all due respect to the OP). Consider the following:

use strict; use warnings; my @a = (2, 4, 6);

The array elements in the above array are 2, 4 and 6. Can 2 be used as a loop iterator? $a[1] is not an array element. One assumes that $a[1] is the referent of the phrase "array element," but that assumption requires disambiguating the OP's use of that phrase.

Log In?
Username:
Password:

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

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

    No recent polls found