----- Original Message ----- 
From: "awarsd" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, August 02, 2003 10:01 PM
Subject: use lib problem


> Hi,
>
> I have a problem maybe it is normal.
> My problem is with using lib
> now to retrieve my module i do this
> use lib "/path/to/Module";
> it works just fine
> but created a configuration file.
> with $dir = '/path/to';
> and when i do
> use lib "$dir/Module";
> it give me an error I also tried use lib qw() but same problem is there a
> way to fix the problem??
>
> regards
> awards
>

I am not sure, but I bet a guess, "use" is activated at comiple time, that
means
use "$dir/Module" is still going earlier than $dir = "path/to" even the
declaration
of $dir is going earlier than use lib.......

In case if you want to do this, you may try ;
package blah;

BEGIN{ $dir = "path/to" }
use lib "$dir/Module";

1;





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to