Problems? Is your data what you think it is? | |
PerlMonks |
Re: Variable to point to library?by benizi (Hermit) |
on Jul 12, 2004 at 23:15 UTC ( [id://373766]=note: print w/replies, xml ) | Need Help?? |
The problem is that 'use' statements get wrapped in BEGIN blocks, so $pathtolib isn't set by the time 'use lib' needs it. Here's how you can accomplish what you're looking for:
or even:
In Section
Seekers of Perl Wisdom
|
|