precedence..
?:
has lower precedence than
{}
change it to:
(!$opt_Z) ? die("Must supply Market\n") : $mkt = $opt_Z;
> -----Original Message-----
> From: Kevin Old [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, July 16, 2002 4:54 PM
> To: [EMAIL PROTECTED]
> Subject: Consolidate if/else
>
>
>
> Hello all,
>
> I'm trying to get this line to work
>
> (!$opt_Z) ? die "Must supply Market\n" : $mkt = $opt_Z;
>
> and I keep getting compiler errors.
>
>
> Basically I'm trying to consolidate:
>
> if (!$opt_Z) {
> die "Must supply Market\n";
> } else {
> $mkt = $opt_Z;
> }
>
>
> Any ideas?
>
> Thanks,
> Kevin
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]