When you 'use strict', you must declare each variable using my().

        my referrers = qw(one two three four);

When you do this, be sure to keep in mind that whatever variable you
declare will be scoped to the block it is in (or the file, if it is
declared outside of a block.

Do a 'perldoc strict' and see the section about "strict vars".


-----Original Message-----
From: Gerald Wheeler [mailto:[EMAIL PROTECTED] 
Sent: Thursday, January 12, 2006 12:15 PM
To: beginners@perl.org
Subject: Use Strict Question

Need a little help...  trying to this thing right..
with all these errors one might assume it's simply - forgot to do
something...

any help in the solution to these errors is greatly appreciated

"use strict;" is used..
****************************
# perl -c theta.pl >
Variable "$error" is not imported at theta.pl line 287.
Variable "$error" is not imported at theta.pl line 291.
Variable "$error" is not imported at theta.pl line 300.
Global symbol "@referers" requires explicit package name at theta.pl
line 17.
<snip>



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to