Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: General Question on parsing a variable

by Athanasius (Canon)
on Feb 07, 2013 at 05:43 UTC ( #1017560=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %hash;
    $hash{$1} = $2 while $var =~ /storeID = (\d+)\s+(.*?)end/gs;
    
  2. or download this
    my $criterion = ...;
    
    print "storeID = $_\n", $hash{$_} for grep { $hash{$_} =~ /$criterion/
    + } keys %hash;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2016-09-27 10:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (501 votes). Check out past polls.