Re: [htmltmpl] (newbie) How to populate an array of hash references one by one?
Brought to you by:
samtregar
From: Timm M. <tm...@ag...> - 2003-11-25 14:00:11
|
>><> >>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. |