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

Re^7: standard library to return system paths

by Corion (Patriarch)
on Jun 07, 2016 at 07:42 UTC ( [id://1165044]=note: print w/replies, xml ) Need Help??


in reply to Re^6: standard library to return system paths
in thread standard library to return system paths

You can install it from CPAN or bundle it with your application/distribution.

Other than that, there is no standard library for such stuff. That's what CPAN is for.

  • Comment on Re^7: standard library to return system paths

Replies are listed 'Best First'.
Re^8: standard library to return system paths
by ablanke (Monsignor) on Jun 08, 2016 at 07:59 UTC

    Hi,

    be aware there is a difference between the system library path and the perl module path.

    Perl always knows where it's modules are installed.

    On your shell:

    perl -V

    The output on linux could look like this:

    @INC: /usr/lib/perl5/... /usr/lib64/perl5/...

    If you can install CPAN modules, you can use them.

    As I understand File::BaseDir (you refer to it in your question) is also not an core module, so someone installed it. Maybe the result of File::BaseDir on the windows machine is empty because it's not installed there.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2024-04-24 02:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found