Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight

Re: Re (tilly) 1: Readonly variable

by princepawn (Parson)
on Feb 27, 2001 at 00:21 UTC ( #60938=note: print w/replies, xml ) Need Help??

in reply to Re (tilly) 1: Readonly variable
in thread Readonly variable

use strict; use diagnostics;
are excellent companions to use strict

Replies are listed 'Best First'.
Re (tilly) 3: Readonly variable
by tilly (Archbishop) on Feb 27, 2001 at 00:51 UTC
    You probably meant to turn on warnings as the second companion?

    While those are good companions, based on my experience when I see that message I take a WAG that the message is really a sign of a non-obvious problem. At least that is how that message has worked for me. Sometimes having Perl tell you why it is giving you the message is not as useful as having someone with some scars tell you what the likely error is that caused that message...

      But I thought that at least part of the point of was for people with scars to collect the likely list of reasons for each error.

              - tye (but my friends call me "Tye")
        True, but consider my point an addendum to point 8 of japhy's advice. Perl can tell you that it is seeing something invalid and describe in great detail why it is invalid. But it takes some experience to make from that an educated guess for why perl is getting invalid data. Since that is probably the question that has to be answered in the end anyways, that is very valuable. But unfortunately it isn't as easily bottled up into a module...

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2022-05-17 19:03 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (68 votes). Check out past polls.