[Omaha.pm] not defined $bucket || $bucket eq '???'

Mario Steele mario at ruby-im.net
Thu Dec 4 11:05:20 PST 2008


On Thu, Dec 4, 2008 at 10:20 AM, Jay Hannah <jay at jays.net> wrote:

> Theodore Katseres wrote:
>
>> If you put parentheses in the right place you get what you want.
>>
>> cat t.pl
>> print (((not defined $j) || 1) ? 'yes ' : 'no ');
>> print (((not defined $j) or 1) ? 'yes ' : 'no ');
>> print ((! defined $j || 1) ? 'yes ' : 'no ');
>> print ((not defined $j or 1) ? 'yes ' : 'no ')
>> yes yes yes yes
>>
>>
>
> Awesome! Thanks!
>
> Truly, we can fix anything by adding enough parenthesis.
>

Fix anything, or screw anything up majorly. :P


> http://en.wikipedia.org/wiki/Newick_format
> http://en.wikipedia.org/wiki/Lisp_programming_language
>
> :)
>
>
> j
>
>
>
> _______________________________________________
> Omaha-pm mailing list
> Omaha-pm at pm.org
> http://mail.pm.org/mailman/listinfo/omaha-pm
>



-- 
Mario Steele
http://www.trilake.net
http://www.ruby-im.net
http://rubyforge.org/projects/wxruby/
http://rubyforge.org/projects/wxride/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/omaha-pm/attachments/20081204/cc8b4894/attachment.html>


More information about the Omaha-pm mailing list