Just another Perl shrine | |
PerlMonks |
Re^4: Align string on a 32-bit boundary with paddingby NERDVANA (Deacon) |
on Aug 20, 2022 at 23:36 UTC ( [id://11146278]=note: print w/replies, xml ) | Need Help?? |
$n was whatever you are adding to the string from your other math. My only point was that appending a short string of "\0" is faster and less to look at than using unpack to split the string on every byte and then re-join them.
In Section
Seekers of Perl Wisdom
|
|