Perl does
$x="0001";
$x++;
print $x;

Output:
0002

BUT

$x="0002";
$x--;
print $x;

Output:
1

Why and how can I avoid that.

(yes, i know about printf)


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to