in reply to How to prefix a string to all the files in a directories as well subdirectories
my $newname = "reference_".$filename ; if(not rename $filename, $newname ){ warn "Error renaming $filename to $newname : $!"; } [download]