in reply to Re^2: creating a directory remotely implicitly
in thread creating a directory remotely implicitly

how can that be done ?

According to the mkdir(1) manual page, using the option -p creates the parent directories of the target. Thus,

$ssh->system(qq{mkdir -p "$remote_dir"});

will do the trick.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'