Li, Aiguo (NIH/NCI) wrote:
Hello, all.

Hello,

I am trying to assign a "P" for any values greater than 1.0 and assign a "A"
otherwise.

$ perl -le' for ( -5.0, 0.0, 0.9999, 1.0, 1.0001, 5.0 ) { print "$_ ", qw( A P )[ $_ > 1 ] } '
-5 A
0 A
0.9999 A
1 A
1.0001 P
5 P



John -- use Perl; program fulfillment

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to