Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: finding perl58.dll

by rvosa (Curate)
on Aug 29, 2006 at 05:18 UTC ( [id://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 (Archbishop) 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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://570093]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (2)
As of 2024-04-20 01:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found