copy folder and its contents to another folder

view story

http://www.unix.com – Hi experts, I am coming to you with this basic question on copying a folder and its content from one location to another folder using PERL script. This is my requirement. I have a folder AB under /users/myhome I want to copy AB and its contents to /user/workspace. Finally it should look like, /users/workspace/AB How to do it using perl? This is my code but its not working correctly as I don't see AB under /user/workspace, instead only contents of AB. Code: #!/usr/bin/perl #!/usr/bin/env perl -w use strict; use warnings; use File::Copy::Recursive qw(fcopy rcopy dircopy fmove rm (HowTos)