SPUG: "Boolean" return values

Andrew Sweger andrew at sweger.net
Tue Oct 14 13:13:45 PDT 2008


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';

-- 
Andrew B. Sweger -- The great thing about multitasking is that several
                                things can go wrong at once.



More information about the spug-list mailing list