Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Possible unpack modification (or module)

by Aristotle (Chancellor)
on Sep 30, 2002 at 16:30 UTC ( #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? | Other CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2023-06-07 15:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you go to conferences?






    Results (29 votes). Check out past polls.

    Notices?