in reply to Move or rename script
Okay, that should work exactly like /bin/mv, but that's because it is /bin/mv with a wrapper.
If you're looking into doing the move in Perl look at File::copy, which has a rather nice move method which does exactly what you seem to want to do, at least in skeleton- if you need the same command line options you can add them.
If you're after exactly the same functionality then look at Perl Power Tools, where people have tried to rebuild an mv in Perl with full functionality.
Update: Wrote File::find rather than File::copy in first version. Oops.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Move or rename script
by Anonymous Monk on May 24, 2002 at 15:07 UTC | |
by Jenda (Abbot) on May 24, 2002 at 15:55 UTC | |
by IOrdy (Friar) on May 24, 2002 at 15:58 UTC |