in reply to Is this reliable?
-
But what I wonder (and have my doubts about) is, will this appoach also work on a arbitrary Perl/OS implementation? My doubt is that
As far as I know the results of a comparative will always evaluate as a non-zero if true. That said I'd be more comfortable doing things this way:
That should eliminate any doubt of the matter.my $r = (temp> 100? 1000: 1250);
Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
In Section
Seekers of Perl Wisdom