>Actually, I've got a problem - I may have jumped the gun. > > <snip> > >Any thoughts? Why are my local "use"s being found, >but not my local "require" and "import"s? > >Again, note, that this is with the following: > > use FindBin qw($Bin); > use File::Spec::Functions; > BEGIN { unshift(@INC, catdir($Bin, "lib")); } > >Changing that to use lib './lib'; causes the same error.
More details:
* pp's "-l" flag doesn't help at all.
* the above three lines of code are in AmphetaDesk.pl. AmphetaDesk.pl is just a stub/wrapper, and is used to create the entire .exe. The last thing AmphetaDesk.pl does is run the (not-exe'd) lib/AmphetaDesk.pm file.
You can see the CVS version of AmphetaDesk.pl here: http://cvs.sf.net/viewcvs.py/amphetadesk/ AmphetaDesk/AmphetaDesk.pl?rev=1.72&view=auto
* Adding the above three lines of code ALSO to lib/AmphetaDesk.pm (itself loaded by AmphetaDesk.pl) causes lib/AmphetaDesk/OS/Windows to be correctly found.
I'm not entirely sure why this works. Any ideas?
Incidentally, I'd love to help you test the par.exe renaming, but I have no clue how to build C programs on Windows.
-- Morbus Iff ( i put the demon back in codemonkey ) Culture: http://www.disobey.com/ and http://www.gamegrene.com/ Spidering Hacks: http://amazon.com/exec/obidos/ASIN/0596005776/disobeycom icq: 2927491 / aim: akaMorbus / yahoo: morbus_iff / jabber.org: morbus