Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: rename files in directory with new extenstion

by damian1301 (Curate)
on Aug 09, 2001 at 08:37 UTC ( #103331=note: print w/ replies, xml ) Need Help??


in reply to rename files in directory with new extenstion

you could just do

while(<*.old>){ ($new = $_) =~ s/old$/new/; rename($_,$new); }
And not waste space by bringing all those filenames into an array

$_.=($=+(6<<1));print(chr(my$a=$_));$^H=$_+$_;$_=$^H; print chr($_-39); # Easy but its ok.


Comment on Re: rename files in directory with new extenstion
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (11)
As of 2015-07-29 09:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (263 votes), past polls