Hi Shlomi,

        Thanks for getting back to me.

> What you should do is:
> 
> [CODE]
> 
> my $host;
> unless (defined($xtra))
> {
>       $host = 'localhost';
> }

        Unfortunately, that gives me the same error.  I had tried it before, 
but I was just trying for a one-liner. ;)

> It's a bad idea to declare variables with a trailing conditional statement
> modifier (such as "if COND();" or "unless COND();").

        Why is it a bad idea?  Can you point me to something to read about 
this?  My Google searches have been a bit thin on comprehensive information.

Thanks again,
Marc
--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to