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

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 imbibing at the Monastery: (9)
As of 2015-07-08 08:20 GMT
Find Nodes?
    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