cpan you have to see
Paul Makepeace
paulm at paulm.com
Sat Dec 15 00:42:59 GMT 2012
On Fri, Dec 14, 2012 at 4:23 PM, David Cantrell <david at cantrell.org.uk> wrote:
> $ true && echo "it was true"
This makes sense. Think of "true" as "thing that succeeded" rather
than "OMG it's 0 so must be false!!1!"
Ruby treats everything as true unless it's nil or false (so yes, 0 and
'' are true). Bit weird to get used to but all this other nonsense
goes away.
Paul
More information about the london.pm
mailing list