Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Possible unpack modification (or module)

by Aristotle (Chancellor)
on Sep 30, 2002 at 16:30 UTC ( [id://201760]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub funpack {
        my ($template, $source) = @_;
        my %hash = map { reverse split /:/, $_, 2 } split " ", $template;
    ...
    }
    
    my $data = funpack 'A20:name A1:sex A3:age A8:salary A12:sign', $foo;
    
  2. or download this
    sub funpack {
        my ($template, $source) = @_;
    
    ...
    }
    
    my $data = funpack 'A20:name A1:sex A3:age A8:salary A12:sign', $foo;
    

Log In?
Username:
Password:

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

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

    No recent polls found