in reply to alpha numeric comparision

I agree with nobull. Whazzup? HOW do you want to compare them? Alphabetically greater than? Numerically greater than?
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"; }