in reply to Re: Why am unable to create another directory using perl?
in thread Why am unable to create another directory using perl?

Is it possible to copy files without directory structure?
chdir $output_dir; mkdir 'html',0755; `find . -name '*.html' | cpio -pdm html`; chdir $output_dir; mkdir 'htmlfiles',0755; `cp -r html htmlfiles`;
Here it copies along with directory structure

Replies are listed 'Best First'.
Re^3: Why am unable to create another directory using perl?
by soonix (Chancellor) on Mar 15, 2017 at 07:23 UTC
    What about files in different directories that have the same name?
    (Most prevalent probably index.html)