How to call ancestor's constructor?

2005-04-30 Thread Siegfried Heintze
I'm trying to write a screen scraper and I need to use inheritance (according to a response to an earlier post). Here is the original piece of code: my $parser = HTML::Parser->new(api_version => 3); Now how do I change this so it is creating an instance of my custom class? Here i

RE: Parsing HTML Tables

2005-04-30 Thread Charles K. Clarkson
Charles K. Clarkson wrote: Oopsie! : my @rows; : while ( $parser->get_tag( 'tr' ) ) { : : # check error number : next unless $parser->get_trimmed_text( '/td' ) eq ''; next unless $parser->get_trimmed_text( '/td' ) eq '4321191'; : : # get next

RE: Parsing HTML Tables

2005-04-30 Thread Charles K. Clarkson
Sri Pen wrote: : and second @tableDefRows match the data between : ..4321191..It matches all the data between : ... something is wrong : here. You are getting this because perl regular expressions are greedy by default and because regular expressions alone are a po

Re: CGIs & CSS - References

2005-04-30 Thread Chris Devers
On Sat, 30 Apr 2005, Mike Lesser wrote: > > Current versions of CGI.pm should generate XHTML by default, iirc. > > Hmm. Does it include the doctype stuff and so forth? Test it and find out. $ cat ~/Sites/test.cgi #!/usr/bin/perl -T use strict; use warnings; use CGI; us

Re: CGIs & CSS - References

2005-04-30 Thread Mike Lesser
Current versions of CGI.pm should generate XHTML by default, iirc. Hmm. Does it include the doctype stuff and so forth? I seem to be getting along fine with print qq() today, but I figured CGI.pm would help with tables and links and so forth. I guess there's no need to settle on using just CGI.

Re: CGIs & CSS - References

2005-04-30 Thread Chris Devers
Whoops! Forgot to send this to the beginners-cgi list :-) Oh well... On Sat, 30 Apr 2005, Mike Lesser wrote: > (1) What's the contemporary way to print xhtml from my CGI? Should I > use CGI.pm, or something else? I currently just have a mess of print > commands. Current versions of CGI.pm sh

CGIs & CSS - References

2005-04-30 Thread Mike Lesser
Hi gang I'm working on my first CGIs, and have been adding stylesheets. I'm currently working on my own machine, under localhost. I have two questions; (1) What's the contemporary way to print xhtml from my CGI? Should I use CGI.pm, or something else? I currently just have a mess of print comma

Re: perl module to create pdf reports

2005-04-30 Thread Mike Lesser
Whoops! Top-post! Chris, Yes, I did search CPAN and found a lot of interesting modules. I will mention that I had asked for ideas and insights, over and above of just plain module names. I guess you often assume people do not search CPAN, and hence I can understand the frustration your email seems

Re: to fork process and use FIFO.

2005-04-30 Thread Ramprasad A Padmanabhan
On Sat, 2005-04-30 at 13:25, Sri Pen wrote: > Need Help on how to fork process and use FIFO. > > I have 10 processes that I would like to fork form parent. > Each process reads a different file, processes it and returns a > log. > I Need to consolidate all the Logs from all 10 processes

to fork process and use FIFO.

2005-04-30 Thread Sri Pen
Need Help on how to fork process and use FIFO. I have 10 processes that I would like to fork form parent. Each process reads a different file, processes it and returns a log. I Need to consolidate all the Logs from all 10 processes and write it out to a single file. Can some one help me

Parsing HTML Tables

2005-04-30 Thread Sri Pen
my( @tableRows, @tableDefRows); $htmlContent = s/\n//g; # $htmlContent Contains the below sample 4321191 http://mail.yahoo.com/config/login?/pls/bug/webbug_util.show_bug_user? p_userid=YHIRA">YHIRA Bug 432119 - WHEN CREATING DATABASE 11 - Code Bug (Response/Resolution) http://mail.yahoo.com/conf