Re: Out of memory, HTML::TableExtract

2011-01-27 Thread C.DeRykus
On Jan 27, 3:29 am, jinstho...@gmail.com (Jins Thomas) wrote: > On Thu, Jan 27, 2011 at 4:44 PM, C.DeRykus wrote: > > On Jan 26, 11:28 pm, jinstho...@gmail.com (Jins Thomas) wrote: > > > > Hi DeRykus > > > > Sorry for replying late. > > > > I was able to  test DB_File with your example, thanks. Bu

Re: Out of memory, HTML::TableExtract

2011-01-27 Thread Jins Thomas
On Thu, Jan 27, 2011 at 4:44 PM, C.DeRykus wrote: > On Jan 26, 11:28 pm, jinstho...@gmail.com (Jins Thomas) wrote: >> > > Hi DeRykus > > > > Sorry for replying late. > > > > I was able to test DB_File with your example, thanks. But i'm facing > > a problem. I'm not able to access multi dimension

Re: Out of memory, HTML::TableExtract

2011-01-27 Thread C.DeRykus
On Jan 26, 11:28 pm, jinstho...@gmail.com (Jins Thomas) wrote: > Hi DeRykus > > Sorry for replying late. > > I was able to  test DB_File with your example, thanks. But i'm facing > a problem. I'm not able to access multi dimensional array with this > DB_File. Address is being stored just a string.

Re: Out of memory, HTML::TableExtract

2011-01-26 Thread Jins Thomas
nal arrays (like two dimensional array from html tables) Thanks Jins Thomas On Sat, Jan 8, 2011 at 10:45 AM, C.DeRykus wrote: > On Jan 5, 10:56 pm, jinstho...@gmail.com (Jins Thomas) wrote: >> Hi experts, >> >> Have you ever experienced Out of memory problem while using &g

Re: Out of memory, HTML::TableExtract

2011-01-07 Thread C.DeRykus
On Jan 5, 10:56 pm, jinstho...@gmail.com (Jins Thomas) wrote: > Hi experts, > > Have you ever experienced Out of memory problem while using > HTML::TableExtract. I'm having little large html files, still i didn't > expect this to happen > > Would you be able to su

Re: Out of memory, HTML::TableExtract

2011-01-06 Thread C.DeRykus
On Jan 5, 10:56 pm, jinstho...@gmail.com (Jins Thomas) wrote: > Hi experts, > > Have you ever experienced Out of memory problem while using > HTML::TableExtract. I'm having little large html files, still i didn't > expect this to happen > If the html files are really b

Re: Out of memory, HTML::TableExtract

2011-01-06 Thread Parag Kalra
ne your thing > and it remains in memory? > > On 2011-01-06 02:26:13 -0500, Jins Thomas said: > >> --0016364270585953cf049927ffd4 >> >> Content-Type: text/plain; charset=ISO-8859-1 >> >> >> >> Hi experts, >> >> >> >>

Re: Out of memory, HTML::TableExtract

2011-01-06 Thread Robert
oblem while using HTML::TableExtract. I'm having little large html files, still i didn't expect this to happen Would you be able to suggest some workarounds for this. I'm using this subroutine in another for loop. sub zParseHTMLFiles ($$) { my ( $lrefFileList, $lrefColN

Out of memory, HTML::TableExtract

2011-01-05 Thread Jins Thomas
Hi experts, Have you ever experienced Out of memory problem while using HTML::TableExtract. I'm having little large html files, still i didn't expect this to happen Would you be able to suggest some workarounds for this. I'm using this subroutine in another for loop. sub

HTML::TableExtract - plz review my example-code [thx in advance]

2010-10-21 Thread jobst müller
this Module: use HTML::TableExtract; - hope this does the trick and does the parsing well. See the Module-site at CPAN: http://search.cpan.org/dist/HTML-TableExtract/lib/HTML/TableExtract.pm TableExtract is a great tool - and i am pretty sure that it does a great job! We need to provide somet

Re: help with HTML::TableExtract

2009-01-01 Thread Chas. Owens
On Thu, Jan 1, 2009 at 10:16, wrote: snip > use HTML::TableExtract; snip This makes it possible to use the code in HTML::TableExtract. snip > $te = HTML::TableExtract->new( headers => [qw(Date Price Cost)] ); snip This is, in fact, creating (instantiating) a new object of th

help with HTML::TableExtract

2009-01-01 Thread butini
hello all (and happy new year), I'm a beginner with Perl since yesterday, I've searched the web and FAQs a lot and found a module called HTML::TableExtract that seems to be doing what I need, namely extracting data from a table of a given HTML file. The problem is I don't underst

Table extract using HTML::TableExtract

2005-12-14 Thread Lee Guan Boon
code. Regards Guan Boon #!/usr/bin/perl -w -d use HTML::TableExtract; my $temp_file = do { open my $in, '<','report-recent-c-level-purchases.html' or die "Can't open in $!\n"; local $/ = undef; <$in&

Problem obtaining rows with HTML::TableExtract

2005-12-07 Thread Wijaya Edward
Hi Hi, I am trying to parse a HTML file with HTML::TableExtract. The main aim is to capture the final rows (that contain "TOTAL") into array reference. How come my code below doesn't do the job? I have attached the html file (dm01g_4.html) which I want to parse/obtaine

HTML::TableExtract example

2005-11-23 Thread Steve Finkelstein
Hi all, I've completed this using regular expressions parsing out arbitrary data between HTML tag, however I found a much more efficient route with the HTML::TableExtract module which looks like it can very well shorten my code and make it more manageable. I'm able to parse out the en

Re: HTML::TableExtract

2004-10-18 Thread Todd Lewis
gent; > use HTTP::Request::Common; > use HTML::TableExtract; > use Data::Dumper; > > > use constant FIELD_DELIM => ','; > $page ="1"; > $pagedone = "No"; > $gExtractedTable; > $gHTMLPage;

Re: HTML::TableExtract

2004-10-18 Thread Todd Lewis
It appears to hang after getting the last page. I have it outputting to screen as well as writing to file so that I can see what is going on untill it's ready. use LWP::UserAgent; use HTTP::Request::Common; use HTML::TableExtract; use Data::Dumper; use constant FIELD_

RE: HTML::TableExtract

2004-10-17 Thread Charles K. Clarkson
Todd Lewis <[EMAIL PROTECTED]> wrote: : I'm using HTML::TableExtract to pull data from a web page. : : the Table depth is always 6,1. It just sometimes is not there : when the page is brought up. How can I tell that the table is : missing using this procedure. I'm trying to

HTML::TableExtract

2004-10-17 Thread Todd Lewis
I'm using HTML::TableExtract to pull data from a web page. the Table depth is always 6,1. It just sometimes is not there when the page is brought up. How can I tell that the table is missing using this procedure. I'm trying to error trap this situation. It causes my co

Re: HTML::TableExtract

2002-02-20 Thread Randal L. Schwartz
> "Kevin" == Kevin Old <[EMAIL PROTECTED]> writes: Kevin> Daniel, Kevin> Try using a switch statement (even though Perl doesn't officially have a Kevin> switch statement). Here's some code below.let me know if you have Kevin> questions. Download and install Switch.pm, and it does. :) -

Re: HTML::TableExtract

2002-02-20 Thread Andrea Holstein
In article <042101c1b9d4$aa61b560$0701a8c0@KOLD> wrote "Kevin Old" <[EMAIL PROTECTED]>: > ... > foreach $a (@headers){ > > SWITCH: { > > if($a =~ qw/sorry/) { $sorry = 1; last SWITCH; } > if($a =~ qw/kevin/) { $kevin = 1; last SWITCH; } >

Re: HTML::TableExtract

2002-02-19 Thread John W. Krahn
Jeff 'Japhy' Pinyan wrote: > > On Feb 20, Kevin Old said: > > >if($a =~ qw/sorry/) { $sorry = 1; last SWITCH; } > >if($a =~ qw/kevin/) { $kevin = 1; last SWITCH; } > >if($a =~ qw/larry/) { $larry = 1; last SWITCH;} > > Uh, qw// is not the right th

Re: HTML::TableExtract

2002-02-19 Thread Jeff 'japhy' Pinyan
On Feb 20, Kevin Old said: >if($a =~ qw/sorry/) { $sorry = 1; last SWITCH; } >if($a =~ qw/kevin/) { $kevin = 1; last SWITCH; } >if($a =~ qw/larry/) { $larry = 1; last SWITCH;} Uh, qw// is not the right thing to use there. Perhaps q// or qq// or qr

Re: HTML::TableExtract

2002-02-19 Thread Kevin Old
Daniel, Try using a switch statement (even though Perl doesn't officially have a switch statement). Here's some code below.let me know if you have questions. #!/usr/bin/perl use HTML::TableExtract; @headers = ("kevin", "sorry", "larry");

HTML::TableExtract

2002-02-19 Thread Daniel Falkenberg
Hi all, At the moment I am working with HTML::TableExtract. I must say that I am having alot of fun with it and most of it is working really well. What I am looking for is some ideas on how I can go about the following... Basically I have my own CGI/Perl page that a user enters some