http://qs1969.pair.com?node_id=103331


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.