From:                   "Reinstein, Shlomo" <[EMAIL PROTECTED]>
> Thanks. However, I think this module won't help me. You see,
> "some_path/lib/sos.pl" is not the "original" (bin) script, but rather
> it's a library of routines used by many "original" scripts. That is to
> say, users don't run "perl some_path/lib/sos.pl", but rather they run
> some other script which knows how to locate and require sos.pl. Shlomo

I see. 
Could you try to print
        $INC{'sos.pl'}
or (if that doesn't print anything) use
        foreach (keys %INC) {
                print "\t$_ => $INC{$_}\n";
        }

This should tell you where was the sos.pl loaded from.
You may then strip the 'sos.pl' from the path with a regexp and 
append '../modules'.

Jenda
=========== [EMAIL PROTECTED] == http://Jenda.Krynicky.cz 
==========
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


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

Reply via email to