in reply to tar a files from loop

Did you do a chomp your $tarfile?
It works just fine for me.