Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by oko1 (Deacon)
on Feb 26, 2012 at 05:05 UTC ( [id://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"

Replies are listed 'Best First'.
Re^5: Help! My variables are jumping off a cliff!
by tangent (Parson) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://956186]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (9)
As of 2024-03-28 10:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found