Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: regex on previous lines

by talexb (Canon)
on Jan 31, 2013 at 17:28 UTC ( #1016366=note: print w/replies, xml ) Need Help??


in reply to regex on previous lines

I've used Tie::File successfully to tie an array to a file .. then you can just scan through the array until you find your 'zzzzz' match, then check the previous element for 'yyyyy', and if successful, the one before that for 'xxxxx'.

As always, There's More Than One Way To Do It. :)

Alex / talexb / Toronto

"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016366]
help
Chatterbox?
[marto]: well, it's the first I've heard of it at least
LanX rofl ... newspaper published article with depressing photos titled "where people voted for brexit" ... one reader commented "change the caption to Berlin" and nobody would disagree xD

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2017-12-12 15:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (335 votes). Check out past polls.

    Notices?