Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: [Perl 6] List of length 2 or...

by moritz (Cardinal)
on Oct 22, 2008 at 14:59 UTC ( [id://718772]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %hash = =$fh.map: { .split(/\t/, 2).Pair };
    
  2. or download this
    my %hash = =$fh.map: { my @a = .split(/\t/, 2); @a[0] => @a[1] };
    
  3. or download this
    my %hash = =$fh.map: { given .split(/\t/, 2) { .[0] => .[1] } };
    

Log In?
Username:
Password:

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

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

    No recent polls found