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

(jeffa) Re: Scraping HTML: orthodoxy and reality

by jeffa (Chancellor)
on Jul 08, 2003 at 14:27 UTC ( #272297=note: print w/ replies, xml ) Need Help??


in reply to Scraping HTML: orthodoxy and reality

"Actually it's not quite perfect, since the resulting array also fills up with a pile of undefs"

Couldn't you just filter the result through grep first?

my (@s) = grep $_, m{ big regex here }gx;
Sure it would be better to not have undefs in there in the first place, and you said you know where they will be, but why worry when grep is at disposal. Just a thought, and thanks for the post. :)

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)


Comment on (jeffa) Re: Scraping HTML: orthodoxy and reality
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2014-07-30 21:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (240 votes), past polls