Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Can Text::CSV_XS return key-value pairs?

by Lady_Aleena (Curate)
on Jun 11, 2017 at 11:17 UTC ( #1192516=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    use strict;
    ...
    my $headers = ['item', 'seen in+'];
    
    print Dumper make_list( file => $file, headings => $headers);
    
  2. or download this
    Crystal Skull|Stargate SG-1, Crystal Skull; The Librarian: Return to K
    +ing Soloman's Mines; Indiana Jones and the Kingdom of the Crystal Sku
    +ll
    Spear of Destiny|The Librarian: Quest for the Spear; Hellboy; Constant
    +ine
    ...
    Excalibur|Excalibur; The Last Legion; The Librarian: Quest for the Spe
    +ar
    H.G. Wells' Time Machine|The Librarians; Warehouse 13
    Holy Grail|Indiana Jones and the Last Crusade; The Librarian: Quest fo
    +r the Spear
    
  3. or download this
    $VAR1 = {
              'Ark of the Covenant' => [
    ...
                               'The Librarian: Quest for the Spear'
                             ]
            };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1192516]
Approved by Athanasius
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2019-09-19 16:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The room is dark, and your next move is ...












    Results (249 votes). Check out past polls.

    Notices?