Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

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

by chromatic (Archbishop)
on Feb 08, 2012 at 18:58 UTC ( #952558=note: print w/replies, xml ) Need Help??


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

This may point to your error (along with a bunch of other non-errors);...

... and a bunch of warnings in other places that aren't under your control. warnings has a lexical scope, while -w and -W affect the entire process.

Replies are listed 'Best First'.
Re^6: RFC: Tutorial: use strict; now what!?
by educated_foo (Vicar) on Feb 08, 2012 at 19:08 UTC
    ...and? Let's say you tried to log something undefined, so you passed it to your logging module. With "use warnings", you would see nothing; with "-w", you would get a message. Which do you prefer? (Or, perhaps, which is more "Modern"?)
      Which do you prefer?

      The version which respects encapsulation boundaries, of course.

      With "use warnings", you would see nothing; with "-w", you would get a message.

      Nope; my logging module uses warnings and reports only what's relevant.

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://952558]
help
Chatterbox?
[marioroy]: ... when shared via MCE::Share-> share(...)
[marioroy]: Net type modules are likely not multi-process safe unless stated in the documentation.
[marioroy]: The Prima author fixed his module to be both thread and multi-process safe. Thanks Dmitry.
[marioroy]: Of all the GUI-type modules, Prima was the worst regarding thread/multi- process safety. Now, it's the best for safety. ;-)
[marioroy]: Tk, Gtk2, Gtk3 requires extra care.
[marioroy]: I was unable to run parallel with Win32::Console. Fortunately, running parallel behind Win32::API is possible.

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (8)
As of 2017-09-22 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    During the recent solar eclipse, I:









    Results (260 votes). Check out past polls.

    Notices?