./rectFileNames.pl start renaming files.... readline() on unopened filehandle CURDIR at ./rectFileNames.pl line 37. (Are you trying to call readline() on dirhandle CURDIR?) finished renaming files....