[tpm] Stupid question time!

Uri Guttman uri at StemSystems.com
Fri Jan 29 18:56:51 PST 2010

>>>>> "AP" == Adam Prime <adam.prime at utoronto.ca> writes:

please learn to bottom quote. now i can't comment on your code in
respect to the OP since it reads upside down.

  AP> 5.10 has defined or which isn't quite the same thing but you could
  AP> achieve something like it with

  AP> my $bar = $foo // undef;

the OP's code will not assign to $bar unless $foo is true. your code
always assigns something to $bar.


Uri Guttman  ------  uri at stemsystems.com  --------  http://www.sysarch.com --
-----  Perl Code Review , Architecture, Development, Training, Support ------
---------  Gourmet Hot Cocoa Mix  ----  http://bestfriendscocoa.com ---------

More information about the toronto-pm mailing list