develooper Front page | perl.beginners | Postings from April 2012

Re: Problem with unless statement

Thread Previous | Thread Next
From:
sono-io
Date:
April 28, 2012 08:00
Subject:
Re: Problem with unless statement
Message ID:
837FADAD-A9F5-4768-96E1-FC65F8A364DF@fannullone.us
Shawn,

> are you sure this is what you want?

	I'm not sure of anything anymore. ;)

	I found something that sets $host properly:

my $xtra = 'mail.example.com';
my $host = 'localhost';

$host = $xtra if (length $xtra > 0);


	Can anyone see any holes in this code?

Marc

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About