http://www.perlmonks.org?node_id=386493

if ($toB || !$toB) { print "That is the question."; }

Replies are listed 'Best First'.
Re: Hamlet
by xCodexWarriorx (Acolyte) on Aug 31, 2004 at 04:09 UTC
    I prefer the regex version myself. Heck, you can even get it on a shirt! (Obviously...)
      I love it.
      Gotta get me one of those shirts. =)
      Kzin
Re: Hamlet
by CloneArmyCommander (Friar) on Aug 30, 2004 at 17:14 UTC
    Neat :). But, how about a bitwise or, that way the answer is either to be or not not be. It's pretty cool though. I think it would either be:
    if ($toB | !$toB) { print "That is the question."; }
    or
    if ($toB XOR !$toB) { print "That is the question."; }
Re: Hamlet
by throttle (Beadle) on Oct 31, 2004 at 22:21 UTC
    Well, it's better than good!!! Maybe Shackespeare wrote his poems in perl? How could we know it...