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

Jay Hannah jay at jays.net
Thu Dec 4 08:20:49 PST 2008


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.

http://en.wikipedia.org/wiki/Newick_format
http://en.wikipedia.org/wiki/Lisp_programming_language

:)

j





More information about the Omaha-pm mailing list