Beefy Boxes and Bandwidth Generously Provided by pair Networks Frank
Think about Loose Coupling
 
PerlMonks  

Re^5: Interview Prepration

by Tanktalus (Canon)
on Apr 04, 2005 at 13:45 UTC ( [id://444743]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


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

To quote:

They're definitely two different kinds of loops. However the text for and foreach may be used to introduce either one. The actual loop-style is determined by what follows.
Which, seems to me, answers the question:
What is the difference between for & foreach, exec & system
as "for & foreach are aliases - there is no difference. They both introduce either a for-style loop or a foreach-style loop, determined by what follows."

Methinks you're getting a bit bent out of shape over someone agreeing with you. Either that, or I'm completely missing your point.

Replies are listed 'Best First'.
Re^6: Interview Prepration
by RazorbladeBidet (Friar) on Apr 04, 2005 at 13:52 UTC
    It's a language (English) problem - for and foreach are words but they also designate the style of the loop, which I think is what merlyn is getting at.

    The words are aliases, the loops are not, as they are taken in context. It sounded like the disagreement was over:
    for & foreach are now an alias to each other
    which is ambiguous
    --------------
    "But what of all those sweet words you spoke in private?"
    "Oh that's just what we call pillow talk, baby, that's all."

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://444743]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.