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

(tye)Re: Simple Module Tutorial

by tye (Sage)
on Aug 06, 2001 at 22:09 UTC ( [id://102533] : note . print w/replies, xml ) Need Help??

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.