m.y has asked for the wisdom of the Perl Monks concerning the following question:
The problem is when I do this in a mod_perl environment it never reaches the line after the null padding. Is this not the way to do it?my $str = "abcde"; $str .= "\0" x (24 - length($str));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: perl null padding
by mr_mischief (Monsignor) on Apr 11, 2008 at 23:30 UTC | |
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 |