JupiterHost.Net wrote:
a) FILE::copy probably doesn;t exist but rather: File::Copy


Sadly :( FILE::copy does exist in some operating systems; like MS DOS and Mac OX S. This is because they do not distinguish between uppercase and lowercase in file names. Perl seems to find the correct module and load it properly but does not call Exporter to export the subroutines. For example, if you said:

  use FILE::copy;

you can still call:

  File::Copy::copy( $source, $destination );

but you cannot:

 copy( $source, $destination );

To verify you have the correct case, do `perldoc <module>` and look under 'NAME' It will have the correct invocation.

b) you have not imported copy() into main::

By default, copy() and move() should be exported but only if you have the exact case. And no, 'use FILE::copy qw/copy/;' will not export copy() for you to use.


--

Just my 0.00000002 million dollars worth,
   --- Shawn

"For the things we have to learn before we can do them,
we learn by doing them."
  Aristotle

"The man who sets out to carry a cat by its tail learns something that
will always be useful and which will never grow dim or doubtful."
  Mark Twain

"Believe in the Divine, but paddle away from the rocks."
  Hindu Proverb

* Perl tutorials at http://perlmonks.org/?node=Tutorials
* A searchable perldoc is at http://perldoc.perl.org/


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to