Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Changing data in one directory

by l2kashe (Deacon)
on Jul 31, 2003 at 14:16 UTC ( [id://279584]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    
    my $base = '/perl/bin/thisdir';
    ...
    closedir(BASE);
    
    print "Total changes: $count\n";
    
  2. or download this
    # snip..
       ( my $newfile = $_ ) =~ s/old/new/;
       rename("$base/$_", "$base/$nwewfile");
    # snip..
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (7)
As of 2024-04-25 08:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found