Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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

by GotToBTru (Prior)
on Nov 07, 2013 at 20:37 UTC ( [id://1061624]=note: print w/replies, xml ) Need Help??


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

What he is trying to accomplish in his examples is vague indeed; the foreach loop and the C-style for loop are not functionally equivalent, even if the first was valid syntax. I suspect these are off-the-cuff examples to illustrate his question.

If you don't mind helping me understand, what are the two ways to parse his question? My own post shows how I parsed it. If that is one of the two, no need to rehash it.

(update added first paragraph for clarity)
  • Comment on Re^4: Using an array element as a loop iterator

Replies are listed 'Best First'.
Re^5: Using an array element as a loop iterator
by ww (Archbishop) on Nov 07, 2013 at 21:05 UTC
    And another is as I guessed (well, WAGed) at in my prior response to OP.

    Yes, the WAG presumes both difficulty in expression in English and insufficient knowledge of Perl (based on 2, above) such that the phrasing used is NOT what a better informed Perl coder would use.

    And, of course, check out the variant meanings of hash, associative array, and similar as used by a Perl coder and a PHP coder.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2024-04-25 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found