On Apr 28, 2012, at 9:04 AM, sono...@fannullone.us wrote: > my $host = 'localhost'; > > if ( defined ($mail_field) and ($mail_field ne '') ) { > $host = $mail_field; > }
I would use: my $host = $mail_field ? $mail_field : 'localhost' ; -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/