Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
What I am trying to do is to start with:sub newDir { my $dir = shift; my $oldroot = shift; my $newroot = shift; my $newdir = $dir; # replace old root dir with new one and create new dir $newdir = $dir; $newdir =~ s/$oldroot/$newroot/; mkdir $newdir; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: replace part of directory
by Util (Priest) on Aug 22, 2009 at 20:12 UTC | |
|
Re: replace part of directory
by roboticus (Chancellor) on Aug 22, 2009 at 18:49 UTC |