On Apr 28, 2012, Shawn H Corey wrote: > Moral of the story: use meaningful variable names.
Yep, you're right. =:\ I thought it was going to be a simple question about the unless statement. Turns out I was headed down the wrong path, so I changed the variable name to make it clear. Next time I'll keep that in mind. Also, I adopted your use of my $host = $mail_field || 'localhost'; Nice and concise! my $mail_field = 'mail.example.com '; $mail_field =~ s/\s+//g if (defined $mail_field); my $host = $mail_field || 'localhost'; Thanks again, Marc -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/