Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^4: Align string on a 32-bit boundary with padding

by NERDVANA (Deacon)
on Aug 20, 2022 at 23:36 UTC ( [id://11146278]=note: print w/replies, xml ) Need Help??


in reply to Re^3: Align string on a 32-bit boundary with padding
in thread Align string on a 32-bit boundary with padding

$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.

Replies are listed 'Best First'.
Re^5: Align string on a 32-bit boundary with padding
by AnomalousMonk (Archbishop) on Aug 21, 2022 at 00:03 UTC

    Fair enough.


    Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11146278]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (3)
As of 2024-04-24 07:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found