Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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 pondering the Monastery: (4)
As of 2019-06-19 13:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Is there a future for codeless software?



    Results (88 votes). Check out past polls.

    Notices?
    • (Sep 10, 2018 at 22:53 UTC) Welcome new users!