<>
The first two lines of my cgi script are:

#!/usr/bin/perl -w
use strict;

When you say to "use -w", is that sufficient?

well, no... I really meant what you already have


#/usr/bin/perl -w
use strict;

you can also "use diagnostics" or splain if you really want a chatty system.

 What about if it's being
run under mod_perl and Apache::Registry so that line isn't, as I
understand it, being invoked.  Does the perl still check to see if there
are invocation flags on the first line and respect them?

dunno. I don't use mod_perl or A::R. I am cc-ing this to the list (as you should do also) because someone else would likely have the answer to this (and other questions).

You can put a 'use warnings;' instead of using -w. There are also places in the mod_perl config where you can modify what switches perl is invoked with.


'use warnings' has the advantage that it can be lexically scoped, so you can shut off warnings you know are harmless for a block.



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?  SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
_______________________________________________
Html-template-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/html-template-users

Reply via email to