do the following: mkdir "two"; chdir "two"; mkdir "one";
if you need to do something else, you need to move back to where you are after the second mkdir david David Richardson wrote: > Is there any way to have a perl script move one directory into > another like: > > $ mkir one two > $ mv one two > $ ls two > one > > without having to use system? > > I tried > > use File::Copy; > > mkdir 'one'; > mkdir 'two'; > move('one', 'two'); > > but this renames one to two and overwrites the two made by mkdir. > > Thanks, > > Dave -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]