In your case, you know the value of the byte you want in the string ($dec), so you can add it to the string with:
That explains why your code isn't doing what you expect. However, don't just do that: I second afresh1's suggestion of using pack. No need to implement pack when it's already part of the language :-)$octcommand = $octcommand . chr $dec;
--
.sig : File not found.
In reply to Re: Returning variable from sub
by wol
in thread Returning variable from sub
by cstrong
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |