On Mon, Sep 30, 2002 at 11:25:32AM -0700, david wrote:

> what sort of error message do you get? assume i have: /home/david/perl/A.pm, 
> the following works for me:
> 
> BEGIN{
>         push @INC, '/home/david/perl';
>         use A;  
> }

Are you sure?

Remember that . is in @INC by default.

In this case you want the use statement after the BEGIN block.

But really you want "use lib".  It goes back to before anything that
anyone should reasonably be using now.

-- 
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net

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

Reply via email to