Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Move using File::Find

by grashoper (Monk)
on Apr 30, 2009 at 20:27 UTC ( #761158=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     
    @ARGV = qw(.) unless @ARGV;
    use File::Find;
    ...
    @dirs=();
    my $dir="\\mlx\\";
    find sub {move("$File::Find::name, -d","$dir.$_") or die "This didn't 
    +work either"};
    
  2. or download this
     
    @ARGV = qw(.) unless @ARGV;
    use File::Find;
    find sub { print $File::Find::name, -d && "/", "\n" }, @ARGV;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://761158]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2022-05-17 08:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (65 votes). Check out past polls.

    Notices?