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

Re: Generalizing Regex with Multiple Match

by shmem (Chancellor)
on Nov 25, 2008 at 09:59 UTC ( [id://725805]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
            # 'g' doesn't seem to work
    
  2. or download this
    $_ = ">r7.1 |SOURCES={GI=162960844,bw,0-4;GI=162960844,bw,9025576-9025
    +608}|";
    $_ =~ /GI=(\d+),(\w+),(\d+\-\d+)/g;
    ...
    >r7.1 |SOURCES={GI=162960844,bw,0-4;GI=162960844,bw,9025576-9025608}|
    -----------------------------------^
    35
    
  3. or download this
    use Data::Dumper;
    my %all_entry;
    ...
    __DATA__
    >r7.1 |SOURCES={GI=162960844,bw,0-4;GI=162960844,bw,9025576-9025608}|
    >r6.1 |SOURCES={GI=152989753,bw,0-30;GI=152989753,bw,1877925-1877931}|
    

Log In?
Username:
Password:

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

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

    No recent polls found