in reply to Re: Some simple math and absolute values (updated)
in thread Some simple math and absolute values

Which can be "golfed" to
$PFACT * ($weight, ($weight >= 0) * 2 - 1)[abs $weight < $MIN]

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]