The replacement of $filename with $id was very useful and it is clear to me, but can you explain to me the significance of '>>' as opposed to '>'?
My script seems to be working thanks to your input in conjunction with another Perl Monk.
Thank you, sir.