Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: finding perl58.dll

by rvosa (Curate)
on Aug 29, 2006 at 05:18 UTC ( #570093=note: print w/replies, xml ) Need Help??


in reply to Re: finding perl58.dll
in thread finding perl58.dll

Thanks for those replies! I was a bit unclear in my initial post, I think, though. I was wondering if there is a more general way to figure out where the $Config{libperl} lives that the running perl interpreter needs/is using. For example, how does PAR figure that out?

Replies are listed 'Best First'.
Re^3: finding perl58.dll
by Anonymous Monk on Aug 29, 2006 at 05:36 UTC
      But not to find the dll, I don't think? I thought M::SD only works on text files?
Re^3: finding perl58.dll
by syphilis (Bishop) on Aug 30, 2006 at 01:20 UTC
    I was wondering if there is a more general way to figure out where the $Config{libperl} lives

    I think the following would always produce the correct path on Win32 to $Config{libperl}:

    perl -MConfig -e "print $Config::Config{archlib}.'\\CORE\\'.$Config::Config{libperl}"

    Works for me - and on Linux if rewritten (with corrections to the directory path separator) as:

    perl -MConfig -e 'print $Config::Config{archlib}."/CORE/".$Config::Config{libperl}'

    Attend to the path separator issue (if that's applicable to your needs) and you should be able to come up with a truly portable script.

    Cheers,
    Rob

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://570093]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (4)
As of 2020-11-30 06:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?