in reply to How to prefix a string to all the files in a directories as well subdirectories

opendir is not open, you cannot write to dirhandle
my $newname = "reference_".$filename ; if(not rename $filename, $newname ){ warn "Error renaming $filename to $newname : $!"; }
  • Comment on Re: How to prefix a string to all the files in a directories as well subdirectories
  • Download Code