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

Re^2: How to improve regex for parsing equals delimited data

by sauoq (Abbot)
on May 11, 2012 at 12:36 UTC ( #969997=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my @F = split /\s*=\s*/;
        
    ...
            \%x;
        } 1 .. $#F];
    
  2. or download this
     my ($toss, @list) = split /\s*([A-Za-z]+)\s*\=\s*/;
     my @row;
    ...
    
     }
     push @rows, \@row;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (11)
As of 2013-05-24 20:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (515 votes), past polls