Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re^6: Interview Prepration

by merlyn (Sage)
on Apr 04, 2005 at 18:13 UTC ( #444753=note: print w/replies, xml ) Need Help??

in reply to Re^5: Interview Prepration
in thread Interview Prepration

Do you mean the word for exchanged for the word foreach? No. Those keywords are syntactically equivalent. And I don't disagree with that fact.

Do you mean replace a for loop with a foreach loop, or vice versa? Certainly! They have different semantics!

The keyword "for" is the same as the keyword "foreach". The "for" loop is different from the "foreach" loop. Do I need to keep repeating this? {sigh}

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2023-09-23 16:50 GMT
Find Nodes?
    Voting Booth?

    No recent polls found