Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: rename files

by izut (Chaplain)
on Aug 08, 2005 at 15:12 UTC ( #481909=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $dir = "/temp_gif";
    opendir(DH, $dir) or die $!;
    ...
       $numbers_replace = int($number) + 338;
       rename("$dir/$_", "$dir/$numbers_replace.GIF") or warn $!;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://481909]
help
Chatterbox?
NodeReaper waits for the new pizza guy, again

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (1)
As of 2017-04-30 12:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (537 votes). Check out past polls.