Craig Moynes/Markham/IBM ([EMAIL PROTECTED]) wrote:
> I cannot use a fixed library path as the script will be installed in
> different directories on different systems.
> 
> the idea is it will be executed as:
> /home/dbncc/perl/scripts/xxxx.pl
> 
> and the library will also be located in the same directory.

And the solution has been given to you:
>                                                                                      
>                              
>                     kimball@stsci.                                                   
>                              
>                     edu (Timothy         To:     [EMAIL PROTECTED]                  
>                              
>                     Kimball)             cc:                                         
>                              
...

> : but I am having trouble stripping $0 of the perl script name.
> 
> The standard File::Basename module has a dirname() function
> that will do that for you.
               ^^^^^ there.

-- 
                     If we fail, we will lose the war.

Michael Lamertz          | [EMAIL PROTECTED] / [EMAIL PROTECTED]
    Nordstr. 49          | http://www.lamertz.net
    50733 Cologne        | Work: +49 221 3091-121
    Germany              | Priv: +49 221 445420 / +49 171 6900 310

Reply via email to