raiph skribis 2007-06-29 1:10 (-0700):
> system('cls' !! 'clear' ?? ($?OS eq any ));
I read this as: given 'cls', use 'clear' if not, and ($?OS eq ...) if
so. Which doesn't make sense, because 'cls' is always true.
Note that I ofter write ternaries on three lines:
condition
??
On 6/29/07, raiph <[EMAIL PROTECTED]> wrote:
snip
Finally, but very importantly imo, what if there are 3 or more
alternatives?
snip
Use a hash or array (depending on the selecting data).
system((zip , )<$?OS>);
system({win32=>'cls', linux=>'clear', other=>'nuke'}<$?OS>);
Of course, this shoul
Hi y'all.
Consider:
system(($?OS eq any ) ?? 'cls' !! 'clear');
Is it already legal syntax to write, or, if not, would it be possible
and desirable to allow:
system('cls' !! 'clear' ?? ($?OS eq any ));
?
If your answer is that it's not yet legal but perhaps ought to be,
then can t