Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

use File::Copy::Recursive;

These will gives an error in the Linux system so can you help me which library can I use instead of File::Copy::Recursive in Linux System or these library will support in Linux for that what can I do?

Replies are listed 'Best First'.
Re: Can I use the File::Copy::Recursive library in Linux Systems.
by dave_the_m (Monsignor) on Mar 24, 2022 at 11:49 UTC
    What error message do you get when you try to do what?

    Dave.

Re: Can I use the File::Copy::Recursive library in Linux Systems.
by Corion (Patriarch) on Mar 24, 2022 at 11:50 UTC

    What error does it give? We can't help you without knowing the error message.

    Maybe the module is not installed. If that is the case, you can install the module by running:

    cpan File::Copy::Recursive

    If that fails because you don't have the appropriate permissions to install modules, consult with your system administrator on how to install new modules for your system.

      I am getting Error like this

      Can't locate File/Copy/Recursive.pm in @INC (@INC contains: /opt/SMAW/SMAWrtppl/5.8.9-03/lib/perl5/5.8.9/x86_64-linux /opt/SMAW/SMAWrtppl/5.8.9-03/lib/perl5/5.8.9 /opt/SMAW/SMAWrtppl/5.8.9-03/lib/perl5/site_perl/5.8.9/x86_64-linux /opt/SMAW/SMAWrtppl/5.8.9-03/lib/perl5/site_perl/5.8.9 .) at -e line 1. BEGIN failed--compilation aborted at -e line 1.

        This error means that the module is not installed.

        Also, this looks like you are using a very old version of Perl - Perl 5.8.9 was released at the end of 2008, that is 14 years ago. While much Perl code might work with Perl 5.8.9, I would consult with the system administrator whether moving to a more recent and supported version of Perl is an option.

Re: Can I use the File::Copy::Recursive library in Linux Systems.
by Discipulus (Canon) on Mar 24, 2022 at 11:57 UTC
    Yes you can!

    L*

    There are no rules, there are no thumbs..
    Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.