in reply to change files names bug
You forgot to chdir to that dir after that readdir you did to that dir :P
opendir is not for people :) people, its for computers
Path::Tiny is for people, as is glob and File::Find::Rule and ...
use Path::Tiny for working with paths. no readdir, readdir is too low-level, and too confusing for noobs (everybody who tried to use readdir even once)
|
|---|