Reputation: 503
My current directory is composed in this way:
currentDirectory
- folder1
-file1
- folder2
In code I wrote to move file1 to folder2 this according to the File::Copy doc:
move("folder1/file1","folder2/file1");
I'm getting an error:
Undefined subroutine &main::move at script.pl line 49
Upvotes: 2
Views: 957