[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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





On Thu, Dec 4, 2008 at 10:20 AM, Jay Hannah <jay@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@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/