Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^4: unless vs. bare block

by JavaFan (Canon)
on May 10, 2012 at 20:19 UTC ( #969860=note: print w/ replies, xml ) Need Help??


in reply to Re^3: unless vs. bare block
in thread unless vs. bare block

I feel that beginners should learn three argument open first
That's all fine and dandy that you feel that way, but that doesn't mean that if someone has a question about unless and block, you should treat their use of 2-arg open as if it contains security problem, just because it's 2-arg open.

It looks to me that the OP has already past the point of "learn 2-arg open or 3-arg open first". He *knows* 2-arg open. From his post, we cannot deduce the state of his knowledge of 3-arg open (nor of a gazillion other Perl constructs).

I prefer not to teach beginners about local and dynamic scope, at least not initially. OTOH, I do teach them about my and lexical scope in the very first lesson.
I'd like to point out that the poster came here with a specific question, and didn't come here with "Heh, I don't know any Perl -- who is going to give me my first lesson".

I also think that your use of terms like 'evil programming practice' when describing the efforts of someone who in your opinion still needs to get their first lesson isn't very constructive.


Comment on Re^4: unless vs. bare block
Re^5: unless vs. bare block
by eyepopslikeamosquito (Canon) on May 10, 2012 at 21:15 UTC

    I'd like to point out that the poster came here with a specific question, and didn't come here with "Heh, I don't know any Perl -- who is going to give me my first lesson".
    The OP has already indicated in Re^2: unless vs. bare block that he was very happy with my reply and even went to the trouble to thank me for it. Besides, I am not answering just for the OP, but also for others who read the thread. Unlike your replies in this thread, the tone of my reply was polite, not bullying, the intent was to help the OP and others improve their knowledge of Perl.

    One of the things I enjoy about perlmonks is that threads often meander a bit, not just "answer the topic at hand and nothing more". This has already been discussed at length in When do we change our replies?, where my exact point of view was expressed by moritz:

    I really like to see replies that not only answer the question, but contribute to the education of all readers in terms of idiomatic Perl and robust programming (always in the context of the original question, of course).

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (11)
As of 2014-09-02 20:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (29 votes), past polls