PDA

View Full Version : Global symbol "$whatever" requires explicit package name at ....



SlashTek.com
December 1st, 2001, 01:54
Hey all

Just a quick question.

Why do I get this error mesage:


Global symbol "$Username" requires explicit package name at /home/myacen2/public_html/slashtek/cgi-bin/yabb/Sources/auctions.pl line 467.
Compilation failed in require at /home/myacen2/public_html/slashtek/cgi-bin/yabb/auctions.pl line 18.


this is what I've done.
I need to include a sub from another .pl file into the current one.
I call the sub &LoadCookie; after doing require "path/to/pl/file" where &LoadCookie is declared. It works, but when I try to put info, from what it did, it shows me this error.

What I need is to display $Username wich is declared in the &LoadCookie sub like this $Username=blablabla

I dont know how to make the script load the info after executing the sub from another .pl


I hope you arent too messed up in this post :D

Thanks

FL/\SH