Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: regex question

by Corion (Patriarch)
on Apr 01, 2020 at 17:16 UTC ( [id://11114913]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     foreach my $pair ( pairs /(\d+)\s+(\S+)/mg ) {
           my ( $key, $value ) = @$pair;
           ...
        }
    
  2. or download this
        $h{ $1 } = $2
            while /(\d+)\s+(\S+)/mg;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-19 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found