Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can't use move of FILE::COPY

Status
Not open for further replies.

fauxpasny

Programmer
Joined
Aug 21, 2006
Messages
1
Location
US
Newbie question about FILE::COPY:

I was working in a much larger program and able to whittle my problem down to just a few lines of code:

use strict;
use warnings;

use FILE::COPY;

move("c:/Scripting/VOD/test.mpg","c:/Scripting/VOD/movetest/test\.mpg");

The error I get is "Undefined subroutine &main::move called at C:/Scripting/VOD/movetest.pl line 6"

Thing is, I've checked my perl directory and C:\PXPerl\lib\File\copy.pm exists. I've also tried a fresh install of PXPerl to no avail.

Any help appreciated.
 
Module names are case sensitive. The correct spelling is:

File::Copy

not FILE::COPY

Code:
use strict;
use warnings;

[COLOR=red]use File::Copy;[/color]

move("c:/Scripting/VOD/test.mpg","c:/Scripting/VOD/movetest/test\.mpg");
 
Modules are case sensitive.

Try and let us know.

use File::Copy;

dmazzini
GSM System and Telecomm Consultant

 
I lost for 2 minutes jejejjeeje

dmazzini
GSM System and Telecomm Consultant

 
hehehe... don't feel bad, I already answered this same question that the same person posted on another forum. Then I come over here and it's already answered, twice.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top