Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: Problem with file path structure in DOS

by Prof Vince (Friar)
on Sep 06, 2007 at 11:43 UTC ( #637396=note: print w/ replies, xml ) Need Help??

in reply to Problem with file path structure in DOS

You're better off using File::Copy :

#!/usr/bin/perl use strict; use warnings; use File::Copy qw/move/; use File::Find; use constant TARGET => 'D:\\jude-test'; find sub { move $File::Find::name, TARGET if -f && /\.(contrib|keep)$/ }, @ARGV;
(Yes, this shebang is kinda ankward for a Windows script :)

Comment on Re: Problem with file path structure in DOS
Download Code

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://637396]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (6)
As of 2015-11-26 00:45 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (695 votes), past polls