Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: Optimize file renaming.

by mirod (Canon)
on May 26, 2005 at 12:01 UTC ( [id://460630]=note: print w/replies, xml ) Need Help??


in reply to Optimize file renaming.

Try using sprintf:

... my $old_name= $_; my $new_name= $sprintf( "%03d.%s", split(/\./); rename $old_name, $new_name unless( $old_name eq $new_name); ...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (3)
As of 2025-05-20 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.