Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: How do unpack templates work

by unlinker (Monk)
on Jul 20, 2012 at 17:48 UTC ( #982872=note: print w/ replies, xml ) Need Help??

in reply to Re: How do unpack templates work
in thread How do unpack templates work

Thanks. I do not want hex digits - I just want to split the binary string into two parts. I was using
until I read that unpack is faster and more efficient.

Replies are listed 'Best First'.
Re^3: How do unpack templates work
by jwkrahn (Monsignor) on Jul 20, 2012 at 22:51 UTC

    Or you could use a regular expression:

    my ( $uu1, $uu2 ) = $uuid =~ /(\C{4})(\C+)/;

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (15)
As of 2016-06-27 16:19 GMT
Find Nodes?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...

    Results (339 votes). Check out past polls.