Or you could use a regular expression:
my ( $uu1, $uu2 ) = $uuid =~ /(\C{4})(\C+)/; [download]
In reply to Re^3: How do unpack templates work by jwkrahn in thread How do unpack templates work by unlinker