Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Perl Beginners > Re: Getting err...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 10 Topic 10995 of 11531
Post > Topic >>

Re: Getting error - Global signal requires explicit package name

by noreply@[EMAIL PROTECTED] (Gunnar Hjalmarsson) Apr 27, 2008 at 06:23 PM

J. Peng wrote:
> On Sun, Apr 27, 2008 at 12:11 PM, hotkitty <stpra123@[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
 




 10 Posts in Topic:
Getting error - Global signal requires explicit package name
stpra123@[EMAIL PROTECTED  2008-04-26 21:11:39 
Re: Getting error - Global signal requires explicit package name
peng.kyo@[EMAIL PROTECTED  2008-04-27 22:20:08 
Re: Getting error - Global signal requires explicit package name
noreply@[EMAIL PROTECTED]  2008-04-27 18:23:52 
Re: Getting error - Global signal requires explicit package name
noreply@[EMAIL PROTECTED]  2008-04-27 18:24:01 
Re: Getting error - Global signal requires explicit package name
noreply@[EMAIL PROTECTED]  2008-04-28 00:50:00 
Re: Getting error - Global signal requires explicit package name
rob.dixon@[EMAIL PROTECTE  2008-04-28 13:43:37 
Re: Getting error - Global signal requires explicit package name
stpra123@[EMAIL PROTECTED  2008-04-28 16:14:46 
Re: Getting error - Global signal requires explicit package name
stpra123@[EMAIL PROTECTED  2008-04-28 17:49:43 
Re: Getting error - Global signal requires explicit package name
noreply@[EMAIL PROTECTED]  2008-04-29 14:40:16 
Re: Getting error - Global signal requires explicit package name
stpra123@[EMAIL PROTECTED  2008-04-30 20:41:13 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 0:59:46 CDT 2008.