No such thing as a small change | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
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 In reply to Re^3: finding perl58.dll
by syphilis
|
|