Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
We don't bite newbies here... much
 
PerlMonks  

Re^2: How best to strip text from a file?

by bobdabuilda (Sexton)
on Nov 07, 2012 at 02:40 UTC ( #1002616=note: print w/ replies, xml ) Need Help??


in reply to Re: How best to strip text from a file?
in thread How best to strip text from a file?

kenosis - thank you VERY much for that. As someone already stated, very eloquent and nice and neat, to boot.

I've not had a chance to come back to this until now, but will hopefully have a chance in the next few days to have a "play" with it and get my head around what you're doing (nothing wrong with your code... it's my head that needs sorting out. I don't play with Perl anywhere NEAR as much as I need to for doing some of this stuff efficiently!)

Thanks for taking the time to do such an informative and helpful response... I'm quite sure I'll be able to make very good use of this.


Comment on Re^2: How best to strip text from a file?
Re^3: How best to strip text from a file?
by Kenosis (Priest) on Nov 07, 2012 at 03:18 UTC

    You've very welcome, bobdabuilda! I hope it'll fit your needs.

    Please let me know if you have any questions about it or if you encounter any problems using it...

      Well, I did get a chance to look at it yesterday before I headed home, and realised I didn't give as much example data as I should have - there are usually numerous Orders containing the multiple distributions... so I'm going to hav a play with the logic today, hopefully, to work out how to perform that loop...

      The quick look I had at it got me there, to a point - but "lost" the first line of each subsequent order due to the way I had the loops set up... should hopefully be able to get that right today... but your code has certainly put me well and truly on the way to what I was after, and I'm very thankful for that :)

        You're most welcome, bobdabuilda!

        ...there are usually numerous Orders containing the multiple distributions...

        Suspected so. What separates these Orders? One option is to set the record separator ($/) to the text that separates Orders, and then do the matching on each Order.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (11)
As of 2014-04-17 14:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (450 votes), past polls