in reply to To initialise or not to initialise?
This is very different from C, where the contents of your variable are arbitrary and could contain complete garbage.if (defined $foo) { .... }
Perl has a nice pragma called "use warnings", which spots when I have been to lazy to initialize any scalar variable I am trying to use.
--
I'm Not Just Another Perl Hacker
|
|---|