Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: regex question

by AnomalousMonk (Bishop)
on Apr 01, 2020 at 17:51 UTC ( #11114915=note: print w/replies, xml ) Need Help??


in reply to regex question

Or even more simply:

c:\@Work\Perl\monks>perl -wMstrict -le "use Data::Dumper; ;; my $s = qq{1 A\n2 B\n}; ;; my %h = $s =~ /(\d+)\s+(\S+)/g; print Dumper(\%h); " $VAR1 = { '1' => 'A', '2' => 'B' };


Give a man a fish:  <%-{-{-{-<

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2020-06-01 06:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?