Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Extracting multiple rows in a text file with a regex.

by Skeeve (Vicar)
on Jul 29, 2013 at 06:05 UTC ( #1046778=note: print w/ replies, xml ) Need Help??


in reply to Re: Extracting multiple rows in a text file with a regex.
in thread Extracting multiple rows in a text file with a regex.

I'd move the flip-flop operator to the top of the loop. Testing for "Name", while the "flip" didn't "flop" is useless.

Additionally I'd either make the second "if" an "elsif" or leave the "if" block with a "next" in order not to check more than required.


s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
+.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e


Comment on Re^2: Extracting multiple rows in a text file with a regex.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (5)
As of 2014-12-27 07:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (176 votes), past polls