perlquestion
ambrus
<P>I fount that the statement <code>$#="%c";</code> has strange side effects on
operations other than stringifying floating-points. For example
<code>
perl -we '$#="%c"; print ord ("k"), $/;'
</code>
Prints only a \0\n, while it should print 107\n.
<code>
perl -we 'print ord ("k"), $/;'
</code>
works correctly.
Could someone tell me why is this, is this really a bug?
<p>This affects all versions of perl on my i686-linux system, that is 5.8.1, 5.8.0, 5.6.1, 5.00503.