|The stupid question is the question not asked|
accessing $var problem due to package and subsby secret (Beadle)
|on Apr 05, 2006 at 16:25 UTC||Need Help??|
secret has asked for the wisdom of the Perl Monks concerning the following question:
Hello esteemed Monks,
I have the following pm file :
Which is loaded by a script like this :
This fails with Global symbol "$fic" requires explicit package name .
I tried to do print $FOO:fic or print $Principal::fic in the bof2 sub but then it fails with Use of uninitialized value in print
I don't understand the namespaces relations in this . Is there a way i can access the value from bof2() without passing it as parameter ?
Thanks if you can help .