Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

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 drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2016-02-14 17:37 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (470 votes), past polls