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

Re^8: RFC: Tutorial: use strict; now what!?

by educated_foo (Vicar)
on Feb 08, 2012 at 19:44 UTC ( #952565=note: print w/ replies, xml ) Need Help??


in reply to Re^7: RFC: Tutorial: use strict; now what!?
in thread RFC: Tutorial: use strict; now what!?

Okay, let's say you want to log undef as an empty string. Tragically, your "encapsulation boundaries" make this impossible. Oh, well.


Comment on Re^8: RFC: Tutorial: use strict; now what!?
Download Code
Re^9: RFC: Tutorial: use strict; now what!?
by chromatic (Archbishop) on Feb 08, 2012 at 20:00 UTC

    What in the world are you talking about?

    How do you know the logging module doesn't itself use warnings? How do you know the logging module does anything which would produce the "use of uninitialized value" warning? How do you know the logging module doesn't explicitly deal with the undef case? How do you know the logging module doesn't localize $^W? How do you know the logging module's API doesn't document exactly what it does and why?

    It's exceedingly silly to debate the nuances of imaginary code you haven't seen. (People who've studied logic tend to call that a strawman argument.)

    ... whereas anyone with a Perl 5 released in the past decade-plus can demonstrate the difference between -w and use warnings; as it relates to the use of and warnings reported from modules.

      It's exceedingly silly to debate the nuances of imaginary code you haven't seen...
      And I am exceedingly grateful for your erudite electronic treatise. I guess I don't use the imaginary logging module in your hypothetical example.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2014-09-21 11:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (168 votes), past polls