Never mind. It is working now.
Thanks,
Aiguo
-Original Message-
From: Li, Aiguo (NIH/NCI)
Sent: Thursday, December 02, 2004 10:11 AM
To: Perl Beginners
Subject: Where is it wrong with my code
Hello, all.
I am trying to assign a "P" for any values greater than 1.0 and assign a "A"
ot
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., 1.0, 1.0001, 5.0 ) { print "$_ ", qw( A
P )[ $_ > 1 ] } '
-5 A
0 A
0. A
1 A
1.0001 P
5 P
John
--
use Perl;
program