How are you using the string? Printing something with null bytes might not do what you expect and probably won't do what you want.$str = 'abcde'; $str .= "\0" x (24 - length $str); print length $str; print "\n";
In reply to Re: perl null padding
by mr_mischief
in thread perl null padding
by m.y
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |