[Petal] [BUG] plugin detection fails w/'use lib'

Steve Purkis spurkis at mkdoc.com
Mon Aug 11 17:31:01 BST 2003


Hi,

I haven't had a chance to look too deep into this, but I've found 
plugin detection fails when you 'use lib ...' as opposed to using the 
-I switch.  So for example, say your petal templates use a module in 
./lib/Petal/Hash/UpperCase.pm... if 'petal_proggy.pl' has:

	use lib './lib'

then this would fail:

	% perl petal_proggy.pl

but this would work:

	% perl -I./lib petal_proggy.pl

Might be something to do with when Petal looks at @INC ?

PS: This is a quick report, so it would be good to get confirmation...

-Steve



More information about the Petal mailing list