RE: distinguishing positive and negative values

2002-02-05 Thread John Edwards
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 and z I want to make the refunds (negative values) go to one file And the sales

Re: distinguishing positive and negative values

2002-02-05 Thread John W. Krahn
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;

Re: distinguishing positive and negative values

2002-02-05 Thread Jenda Krynicky
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 Clark # start