in reply to perl null padding
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perl null padding
by m.y (Novice) on Apr 12, 2008 at 00:32 UTC | |
by nobull (Friar) on Apr 13, 2008 at 09:41 UTC | |
by m.y (Novice) on Apr 14, 2008 at 18:51 UTC |