
ogit2
Novice
Mar 20, 2018, 8:06 AM
Post #2 of 11
(1053 views)
|
Hi Are you trying to do a string comparison, string length comparison or number comparison? Can you confirm? In string comparisons lt, gt, eq, le, ge are used instead of symbols. However this will still gives the same result. Also try this in Excel, and you will see the same result.
#!C:\Perl\bin\perl.exe use strict; use warnings; my $hello = "384.99"; my $hello2 = "384.128"; if ( $hello ge $hello2 ) { print "$hello newer than or same as wanted $hello2, not doing anything\n"; }
(This post was edited by ogit2 on Mar 20, 2018, 8:15 AM)
|