Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: About text file parsing

by bliako (Prior)
on Aug 29, 2018 at 10:52 UTC ( #1221297=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    open(FILE,"test.txt");
    my %inp = ();
    ...
     if(/^(.+?)\s+(\S+)/){ $inp{$1} = $2 }
    }
    close(FILE);
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2020-12-03 01:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How often do you use taint mode?





    Results (49 votes). Check out past polls.

    Notices?