On 21 Mar 2007 at 17:05, kilaru rajeev wrote:

> Hi,
> 
> Can anybody help me to add a directory to @INC variable?
> 
> Thanks,
> Rajeev Kilaru
> 

Either of these should work. Put them at the top, before you use 
something from somedir.

1) 
use lib '/path/to/somedir';

2) unshift @INC, '/path/to/somedir';

HTH,
Dp.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to