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

Re: Unpack Many Fields

by BrowserUk (Patriarch)
on Feb 15, 2010 at 23:53 UTC ( [id://823372]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $fmt = join '', qw[
        x[10] a5
    ...
        x[4]  a3 a2
        ...
    ];
    
  2. or download this
    my $fmt = join '', grep !m[^#], qw[
        x[10] a5     #code
    ...
        x[4]  a3 a2  #doodah&whatsit
        ...
    ];
    
  3. or download this
    my $fmt = "x[10]a5x[22]a10x[4]a3a2...";
    my %hash;
    ...
        print $hash->{ $code }[ $_ ] for 0 .. 33;
    }
    

Log In?
Username:
Password:

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

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

    No recent polls found