Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Parsing file in Perl post processing

by NetWallah (Canon)
on Sep 09, 2015 at 17:23 UTC ( [id://1141448]=note: print w/replies, xml ) Need Help??


in reply to Re: Parsing file in Perl post processing
in thread Parsing file in Perl post processing

Great solution (++).

adding a '+' to the regex eliminates trailing spaces in the values:

# = my %hash = map { $_, ($string =~ m/$_:(.+?)\s+$z/)} @keys; # =

        Software efficiency halves every 18 months, thus compensating for Moore's Law.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-03-28 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found