From: "Stuart Clark" <[EMAIL PROTECTED]>
> How do I distinguish between positive and negative values.
> The values are between the "a" and "z"
> I want to make the refunds (negative values) go to one file
> And the sales (positive values) got to another
>
> Regards
> Stuart Clar
Stuart Clark wrote:
>
> Hi,
Hello,
> How do I distinguish between positive and negative values.
$ perl -e'
for $value ( -15.32, 243.56, -2.45 ) {
if ( abs $value == $value ) {
print "$value has a positive value.\n";
}
else {
print "$value has a negative value.\n
-
From: Stuart Clark [mailto:[EMAIL PROTECTED]]
Sent: 05 February 2002 11:25
To: Perl List
Subject: distinguishing positive and negative values
Hi,
How do I distinguish between positive and negative values.
This is part of a merchant batch script.
The values are between the "a" a
Hi,
How do I distinguish between positive and negative values.
This is part of a merchant batch script.
The values are between the "a" and "z"
I want to make the refunds (negative values) go to one file
And the sales (positive values) got to another
Regards
Stuart Clark
# start of file tes