I'll look into that. Thanks. I have code similar that I wrote before but not the original script I had written. I tried to write it again, but its been years since I wrote any Perl also I was hit by a drunk driver and my head went through the real windshield of my truck and its possible I've lost some short term memory which makes coding more difficult. I will look into that. Thanks.