Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

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?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (9)
As of 2015-07-08 08:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (96 votes), past polls