Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

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
newrisedesigns.com


Comment on Re: (nrd) Finding occurences
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (16)
As of 2014-12-19 20:17 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

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





    Results (91 votes), past polls