Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: pack and unpack multiple arrays with one common repeat prefix

by kennethk (Abbot)
on Jun 15, 2017 at 14:57 UTC ( [id://1192866]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print join(',', unpack("C/C* v*", $testinput)), "\n";
    
  2. or download this
    my $testinput = pack('C/a* a* a*', 
                         (pack 'Cvs', 1, 3, -5), 
    ...
                         );
    
    print join(',', unpack("C/(Cvs)", $testinput)), "\n";
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2024-04-16 16:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found