Hello!

Your error might not necessarily be due to File::Copy not being installed.
Since you (wisely) used strict you'll need to declare your variables with my ie:
my $copyLog = "perlCopy.log";
Now, to check for what modules are availible on a particular installation, there are two ways to go about it: the correct way and the quick way.

The correct way is to use ExtUtils::Installed and check the list returned. ie:
perl -MExtUtils::Installed -e'foreach(ExtUtils::Installed->new()->modu +les()){print"$_\n";}' | less
This has the added advantage of informing you of all modules installed in the default location for this installation.

The quick way is simple, but really just useful for checking if one specific module is installed:
perl -MSome::Module -e'print"hello,world\n";'
If the module isn't installed you'll get a "Can't locate Some/Module.pm" error.

Hope this helps.

In reply to Re: File Copy on Linux by r11132a
in thread File Copy on Linux by Anonymous Monk

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.