Thanks for the info, you're right I am using the Perl for System Administration book. I think I need to be a little more patient and actually READ the book istead of just pulling things out of it. I'll try to be more careful about asking questions in the future. I'm new to Perl and this site is great, tons of information and usable stuff. Thanks again for your answer.