http://www.perlmonks.org?node_id=1166777


in reply to creating a directory remotely implicitly

I am not familiar with this package, but I know that with scp, using the recursive (-r) option you may place a hierarchy of directories and files onto the remote machine. Similarly, you can use rsync. With that in mind, you could mirror the structure you want locally, then do a recursive scp or an rsync (using a Perl module hopefully) to achieve the effect you desire.