"use strict" will find the undeclared/undefined variables.
something like
my $var;
and later on used in the program will not be find by the "use strict", but
will cause "use uninitialized variables" warnings if -w switch is on.
Harry
----- Original Message -----
From: "Frank Maas" <[EMAIL PROTECTED]>
To: "'Harry Zhu'" <[EMAIL PROTECTED]>; <modperl@perl.apache.org>
Sent: Wednesday, February 22, 2006 5:17 PM
Subject: RE: find all uninitialized variables?
Is there an easy way (a tool) to locate all uninitialized variables for
modperl
modules in a dirctory so I can initilized them and get rid of the annoying
warnings? Googlling on the internet seems no useful results. Some one
shield
me a light?
Does not seem to be a specifiec mod_perl thing, but hey. Have you tried "use
strict"?
If that does not do your trick, then elaborate on what you mean by
'uninitialized'?
Gr/F
--
No virus found in this incoming message.
Checked by AVG Free Edition.
Version: 7.1.375 / Virus Database: 268.0.0/266 - Release Date: 2/21/2006