http://www.perlmonks.org?node_id=102533


in reply to Simple Module Tutorial

$W++ will only give you run-time warnings and will affect other packages. Personally, I don't turn on warnings in modules that I write but I do make a point of testing them with warnings turned on (by putting "#!/usr/bin/perl -w" at the top of my test scripts).

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re: Simple Module Tutorial
by tachyon (Chancellor) on Aug 06, 2001 at 22:36 UTC

    Thanks I changed it from the lexically scoped 'use warnings;' so that this is applicable to versions < 5.6. but as it adds little value to the tutorial and has the unwanted side effects you point out I have just deleted it - saves a few lines of dubious value. I'll add a note on testing with warnings when I have a moment.

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print