On Tuesday 27 March 2007 06:47, Rodrigo Tavares wrote:
> Hello,
[ . . ]
> I use of stricts and warnings, and come this error
> compilation when i wrote into my code.
>
> Global symbol "$x" requires explicit package name at
> ./start-banco.pl line 7.
> Global symbol "@word" requires explicit package name
> at ./start-banco.pl line 11.
> Global symbol "@bancos" requires explicit package name
> at ./start-banco.pl line 17.
>
> The compilation show there are variables globals.
>
> What I can to resolve this problem ?

When that happen, it's typically due to: have not used "my" which, when used, 
declares a lexical variable.  This has to do with the scope of the varaiable.

I don't see your latest code.  Hopefully I didn't miss the mark (as in some 
other sort of a library/package issue).

http://perl.plover.com/FAQs/Namespaces.html

http://groups.google.com/group/perl.beginners/search?group=perl.beginners&q=scope&qt_g=Search+this+group

http://groups.google.com/group/perl.beginners/search?group=perl.beginners&q=Global+symbol&qt_g=Search+this+group

-- 
Alan.

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


Reply via email to