Thank you so much for your great help. So while the output of the split remains in the default variable ,$_, what does 2 do? Also, how can I manipulate $. variable in a way that sequential numbers being added to the $title and not to the file extension: I am getting file.txt1 instead of file1.txt
I tried ".txt" after ".$" but obviously didn't work
Thanks again for your explanations and help