Ramprasad A Padmanabhan wrote:

> Hello All,
> 
> I have a perl script which has
> 
> (assuming BAR.pm is in /tmp/foo/)
> 
> 
> BEGIN {
>      push @::INC , "/tmp/foo";
>      # use  BAR;  # Does not work
>      require BAR;  # Works fine
> }
> 
> Can I get to use 'use' instead of require any how
> 
> Thanx
> Ram

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;  
}

david

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

Reply via email to