note
joealba
Works fine for me, without the typo. Was that a cut-n-paste error, or is that your actual code (with the <CODE>c$</CODE> instead of <CODE>$c</CODE> in your conditional)?
<CODE>my $c = -5;
print "C is now $c\n";
$c = 0 if ($c < 0);
print "C is now $c\n";
</CODE>
132610
132610