J. Peng wrote:
On Sun, Apr 27, 2008 at 12:11 PM, hotkitty <[EMAIL PROTECTED]> wrote:
Here's the script (which I got from a YouTube
video...it seemed to work for him):
No. If this is the original script, it can't work even for the author.
You 'require strict' and 'use warnings' but for all variables, you
didn't declare them with either 'my' or 'our'. Perl can't compile and
execute it at all.
That's not correct. require() happens at run time, and since perl checks
for variable declarations under strict 'vars' at compile time, the
script both compiles and executes, even if it produces a bunch of
uninitialized warnings.
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/