Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: -> Is Optional ?

by kennethk (Monsignor)
on Dec 28, 2012 at 16:50 UTC ( #1010719=note: print w/ replies, xml ) Need Help??


in reply to Re: -> Is Optional ?
in thread -> Is Optional ?

Your advice is a little off-point; while the posted code does contain a syntax error, this is a compilation error. Neither the addition of strict nor warnings would give any additional insight into the nature of the issue. Once you fix the curly issue, the code passes both tests just fine. I love these pragma dearly, but will never cite them in a response unless they actually help in the particular situation. Expecting people to include them above every code snippet, or expecting every code snippet to be a full script, is unnecessary orthodoxy.

You may also wish to peruse ree's profile to gather information about his familiarity with the language.


#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.


Comment on Re^2: -> Is Optional ?
Re^3: -> Is Optional ?
by space_monk (Chaplain) on Dec 28, 2012 at 18:56 UTC
    Yes, I do apologise; I was aiming for amusement value more than anything else in my comment, but on reading it, it was probably a bit too aggressive.
    A Monk aims to give answers to those who have none, and to learn from those who know more.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (7)
As of 2014-12-27 11:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (177 votes), past polls