@m=split(',',$str);
$min=-9999999999;
$match=1:
for(@m){
if/^[+-]?d+/ && $_>$min{$min=$_;}
else{$match=0;last;}
}