in reply to Re^3: problem referencing global variable in self-written module
in thread problem referencing global variable in self-written module

I must be doing something else wrong. I downloaded your code, over-writing the text in my "Fleece.pm" module. The same error greeted me when I tried to run "testuse.pl". Here are more details, though I am unsure if any of them matter. The "testuse.pl" script is in my "C:\Documents and Settings\yburge" folder. When I open a command prompt, that's where I am by default. The "Fleece.pm" module is in the "C:\Perl\site\lib" folder.

BTW, I noticed in down-loading your code, the "expected" file extension was ".pl". Would that make any difference?
  • Comment on Re^4: problem referencing global variable in self-written module

Replies are listed 'Best First'.
Re^5: problem referencing global variable in self-written module
by ikegami (Patriarch) on Jun 09, 2006 at 20:53 UTC

    Print $INC{'Fleece.pm'} to make sure you are using the Fleece.pm you think you are using.

    Perl Monks assumes everything in code tags is Perl code, and it can't tell the diff between code which should be a in .pm and other code. For use Fleece to work, you'll need to name the file Fleece.pm.