Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Moving .doc Files

by gawatkins (Monsignor)
on Jun 23, 2004 at 20:42 UTC ( #369169=note: print w/replies, xml ) Need Help??


in reply to Moving .doc Files

In addition to the suggestion for File::Copy you could use the system move command:

opendir (DIRHANDLE, $OLDDIR); while ($oldname = readdir(DIRHANDLE)) { chomp $oldname; $filename = "$OLDDIR\\$oldname"; $newname = "$DIR\\$oldname"; if (-f $filename) { system("move", $filename, $newname); } } closedir (DIRHANDLE);

Just a diffrent way to do it.
Greg W

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://369169]
help
Chatterbox?
[1nickt]: Wow. I had heard about the chips on HP cartriddges but not that issue. I rejected HP's equivalent laptop becuase of build quality, very plasticky keyboard. And I believe HP is the champon of bloatware, too.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (11)
As of 2017-03-27 13:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (320 votes). Check out past polls.