someone his name/nickname "rpete" in
irc.openprojects.net/#perl has solved it.
this is his solution:
opendir DIR, '.';
$i=0; while ($old = readdir DIR)
{
-f $old or next; $new = sprintf "file_%03d", $i++;
rename($old, $new) or die "$old: $!";
}
-copyright reserved for Rpete,published under GPL
Thanks for both Jason and Rpete--cool perlers.