SPUG: "Boolean" return values
Colin Meyer
cmeyer at helvella.org
Tue Oct 14 13:42:17 PDT 2008
On Tue, Oct 14, 2008 at 01:13:45PM -0700, Andrew Sweger wrote:
> On Tue, 14 Oct 2008, Colin Meyer wrote:
>
> > print 'Your number is ',
> > ( $num < 100 ? 'less' : 'greater' ),
> > ' than 100';
>
> You don't work in the financial sector by any chance, do you?
>
> my $num = 100;
> print 'Your number is ',
> ( $num < 100 ? 'less' : 'greater' ),
> ' than 100';
Heh, nice catch.
-Colin.
More information about the spug-list
mailing list