CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Regular Expressions: Re: [FishMonger] Read the var values: Edit Log


Aug 19, 2012, 9:28 PM

Views: 27688
Re: [FishMonger] Read the var values

Are you currently getting your desired output?

If not, how does it differ from what you want?

Well, with the regexp I wrote I might get the X, Y and Z values in three passes but everytime I would have to check which one of $1, $2 and $3 contains the extracted data.

Instead of looping over the lines, you could join them into a single scalar and apply one or more regex's to extract the data.

The input text contains several thousand lines of the data and I have to generate the transformed output line by line - that is why I am trying to process each line separately.

Thank you for the reply

(This post was edited by Chupo_cro on Aug 19, 2012, 9:29 PM)

Edit Log:
Post edited by Chupo_cro (Novice) on Aug 19, 2012, 9:29 PM

Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives