Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?

Re: (nrd) Finding occurences

by newrisedesigns (Curate)
on Feb 28, 2003 at 19:11 UTC ( #239522=note: print w/replies, xml ) Need Help??

in reply to Finding occurences

@lines = grep(/(.+)\:(.+)/, @lines); # for the whole line from an arra +y #for the parts out of lines from a file. while(<$fh>){ if(/(.+)\:(.+)/){ $before = $1; $after = $2; } }

How are you applying this? There may be a module to help you.

Also, this is sort of an RTFM... see grep, perlre, and perlretut.

Update: I just noticed that you want to search a site. What site? You'll have to use LWP to get the pages you want to search, then use HTML::TokeParser to pull out relevant text and process it.

John J Reiser

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://239522]
[Corion]: marto: Oh, I'm jealous. I'm going to see DM in Frankfurt, but it's a stadium full of people, so, rather a big thing where you mostly get to see the band on screens ;)
[marto]: yes, the last time I saw them was in Berlin a few years ago, at the old Olympic stadium
[marto]: After Sunday I don't think I'll go see them again :)

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2017-03-24 11:32 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (301 votes). Check out past polls.