Night Walker
Night Walker

Reputation: 21280

How can I copy an entire directory in Perl?

I need to copy entire directory to some location.

What is the best way to do so ? File::Copy copies only file by file as I saw it.

By the way I work under Windows.

Thanks for help.

Upvotes: 5

Views: 19218

Answers (2)

Adam Luchjenbroers
Adam Luchjenbroers

Reputation: 5029

A quick google search for "perl copy directory file::" finds

File::Copy::Recursive

Looks what you're after.

Upvotes: 3

unwind
unwind

Reputation: 400129

Maybe look into File::Copy::Recursive.

Upvotes: 10

Related Questions