Re: trying to understand HTML::TreeBuilder::XPath

2013-01-26 Thread Octavian Rasnita
From: "Jeswin" Hi, I'm trying to parse out the emails addresses from a webpage and I'm using the HTML::TreeBuilder::XPath module. I don't really understand XML and it's been a while since I worked with perl*. So far I mashed up a code by looking through past examples online. The HTML portion f

Re: trying to understand HTML::TreeBuilder::XPath

2013-01-26 Thread Jim Gibson
On Jan 26, 2013, at 3:52 PM, Jim Gibson wrote: > However, if your program is successfully finding all of the tag sections > of the web page, and your only problem is distinguishing between email links > and other types of links, you can use regular expressions to detect mailto > links: > > m

Re: trying to understand HTML::TreeBuilder::XPath

2013-01-26 Thread Jim Gibson
On Jan 26, 2013, at 12:44 PM, Jeswin wrote: > Hi, > I'm trying to parse out the emails addresses from a webpage and I'm > using the HTML::TreeBuilder::XPath module. I don't really understand > XML and it's been a while since I worked with perl*. So far I mashed > up a code by looking through past

trying to understand HTML::TreeBuilder::XPath

2013-01-26 Thread Jeswin
Hi, I'm trying to parse out the emails addresses from a webpage and I'm using the HTML::TreeBuilder::XPath module. I don't really understand XML and it's been a while since I worked with perl*. So far I mashed up a code by looking through past examples online. The HTML portion for the email is like

Re: need suggestion stat vs Devl::Size for checking size very very frequently

2013-01-26 Thread Dr.Ruud
On 2013-01-26 04:52, Rajeev Prasad wrote: i have a lot of data coming/pouring in [...] I want to stop writing after certain size is written (say 1gb). [...] I am worried I am doing too many stat [...] For a close approximation, you can just sum the length of the input data. $written += len