Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

regex question

by morgon (Priest)
on Apr 01, 2020 at 17:10 UTC ( [id://11114912]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    1 A
    2 B
    
  2. or download this
    {
      1 => "A",
      2 => "B", 
    }
    
  3. or download this
    use strict; 
    use Data::Dumper;
    ...
    
    my %h =map { $1 => $2 } $s =~ /(\d+)\s+(\S+)/mg;
    print Dumper(\%h);
    
  4. or download this
    $VAR1 = {
              '2' => 'B'
            };
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (3)
As of 2024-04-20 04:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found