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

Re^2: Data extraction from text file

by Eliya (Vicar)
on Aug 09, 2011 at 11:49 UTC ( #919458=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $/ = "-------\n";
    my @records;
    ...
        my @entries = map { /([^:]+):\s*(.*)/ } split /\n/;
        push @records, { @entries } if @entries;
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://919458]
help
Chatterbox?
LanX .oO( But what if the nuclears codes don't fit into 140 characters ??? o_O )

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (10)
As of 2017-01-20 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (174 votes). Check out past polls.