Alpha: if ( $temp_var1 gt $tempvar2 ) { print "gt\n"; } Numerically: $_ = $temp_var1; tr/a-zA-Z//g; $tnum1 = $_; $_ = $temp_var2; tr/a-zA-Z//g; $tnum2 = $_; if ( $tnum1 > $tnum2 ) { print "gt\n"; }
In reply to Re: alpha numeric comparision
by samizdat
in thread alpha numeric comparision
by prad_intel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |