Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^4: Help! My variables are jumping off a cliff!

by oko1 (Deacon)
on Feb 26, 2012 at 05:05 UTC ( #956186=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Help! My variables are jumping off a cliff!
in thread Help! My variables are jumping off a cliff!

OK, thanks for clarifying. I'm just seriously surprised that Perl, which is an extraordinarily sensible language in most other ways, doesn't have a more definite response to this kind of mistake - one that can easily be made unintentionally - in coding. I'm even more surprised that it doesn't seem to bother other people.

-- 
I hate storms, but calms undermine my spirits.
 -- Bernard Moitessier, "The Long Way"


Comment on Re^4: Help! My variables are jumping off a cliff!
Re^5: Help! My variables are jumping off a cliff!
by tangent (Curate) on Feb 26, 2012 at 05:15 UTC
    I hear what you're saying oko1, but isn't use warnings a valid response? I mean, where would you draw the line with strict if you start looking at all the other problems you can run into?

      The field of problems that are a) always errors, b) detectable, and c) easily made unintentionally is not very large. Also, the docs for 'strict' specifically mention 'vars' as being intended to prevent variable suicide - which it fails to do in this case. Currently, the only thing that we've got is a mildly-phrased warning; in fact, it's classified as 'misc' in the warnings hierarchy.

      That just seems totally inappropriate to me - particularly when compared to the way this kind of error is treated in other languages.

      -- 
      I hate storms, but calms undermine my spirits.
       -- Bernard Moitessier, "The Long Way"

        That just seems totally inappropriate to me - particularly when compared to the way this kind of error is treated in other languages.

        Yeah, evolution is a messy, and things are what they are

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (6)
As of 2014-12-27 07:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (176 votes), past polls