Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: How to perform recursion in any OS?

by hippo (Bishop)
on Dec 09, 2016 at 09:57 UTC ( [id://1177527]=note: print w/replies, xml ) Need Help??


in reply to Re: How to perform recursion in any OS?
in thread How to perform recursion in any OS?

File::Find is a core module, so it is for sure in your installation.

It would be nice if that were true. Unfortunately, some (many?) vendors choose to provide the perl binary separately from the core modules. This means that it is not only possible to have perl installed on a system without the core modules but in some cases (yes, I'm looking at you, RedHat) it is the common scenario. Thankfully those core modules are usually available elsewhere in the distribution and it is usually a simple matter of using the vendor's package manager to install them.

This point has been made a few times before. See for example, Re: Why not include version.pm

  • Comment on Re^2: How to perform recursion in any OS?

Replies are listed 'Best First'.
Re^3: How to perform recursion in any OS?
by CountZero (Bishop) on Dec 09, 2016 at 17:00 UTC
    Never expect your "system" Perl to do anything else but system-related tasks and do not rely upon it for anything else.

    Install your own Perl (perlbrew is ideal for this) and use that for your tasks. That way you are sure to have a modern/recent Perl that contains the modules and tools you need.

    CountZero

    A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

    My blog: Imperial Deltronics

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-16 20:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found