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/obtained final result __BEGIN_

installing Bundle:Latemp problems

2005-12-07 Thread Mark Hicks
I want to use the static webpage CMS system of Latemp as found at http://web-cpan.berlios.de/latemp/ Install begins with perl -MCPAN -e "install Bundle::latemp" On my SuSE 9.3 system, I get error messages. They are listed below. I would be grateful for help in understanding what these messages a

DBI:ORACLE

2005-12-07 Thread Lorenzo Caggioni
HI!!! i'm tring to use DBI module Here is the code #!/geneva/geneva/dev1/perl5/bin/perl # use strict; use DBI; use warnings; my $dbh = DBI->connect( 'dbi:Oracle:MYSEED, 'donald', 'duck', { RaiseErr

RE: ORACLE

2005-12-07 Thread José Pedro Silva Pinto
Hi, Simple, Put: RaiseError=> 0 Printerror=> 1 José Pedro Silva Pinto -Original Message- From: Lorenzo Caggioni [mailto:[EMAIL PROTECTED] Sent: quarta-feira, 7 de Dezembro de 2005 10:50 To: beginners@perl.org Subject: DBI:ORACLE HI!!! i'm tring to use DBI module Here is the code #!/g

Re: DBI:ORACLE

2005-12-07 Thread Dan Klose
On Wed, 2005-12-07 at 12:50 +0200, Lorenzo Caggioni wrote: > HI!!! Hi > i'm tring to use DBI module > > Here is the code > > #!/geneva/geneva/dev1/perl5/bin/perl > # > > use strict; > use DBI; > use warnings; > > my $dbh = DBI->connect( 'dbi:Oracle:MYSEED, > 'donald', >

Re: DBI:ORACLE

2005-12-07 Thread Lorenzo Caggioni
Fixed with José Pedro Silva Pinto comments. Thanks Lorenzo On 12/7/05, Dan Klose <[EMAIL PROTECTED]> wrote: > > On Wed, 2005-12-07 at 12:50 +0200, Lorenzo Caggioni wrote: > > HI!!! > Hi > > i'm tring to use DBI module > > > > Here is the code > > > > #!/geneva/geneva/dev1/perl5/bin/perl > > # >

Re: OOP inheritance question (simple)

2005-12-07 Thread Randal L. Schwartz
> "Xavier" == Xavier Noria <[EMAIL PROTECTED]> writes: Xavier> package class2; Xavier> use base 'class1'; Except of course, lowercase package names are reserved for pragmata. -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 http://www.stonehenge.com/

Parameterizing a module

2005-12-07 Thread vmalik
Hi all, I have a module which does nothing but include a bunch of use statements (Shawn Corey, I think you taught me how to do that).It looks like this: -- #PerlMQ.pm use strict; use warnings; use statement1; use st

Re: Parameterizing a module

2005-12-07 Thread Shawn Corey
[EMAIL PROTECTED] wrote: In my script, I load the module by saying "use PerlMQ;". However, now I want to load only certain use statements from the module depending on the parameter I give it. For example, in my script, I want to say "use PerlMQ qw(some_parameter)" in order to load the use stateme

Re: Parameterizing a module

2005-12-07 Thread Wiggins d'Anconia
[EMAIL PROTECTED] wrote: > Hi all, > > I have a module which does nothing but include a bunch of use statements > (Shawn > Corey, I think you taught me how to do that).It looks like this: > > -- > #PerlMQ.pm > > use

Re: OOP inheritance question (simple)

2005-12-07 Thread Wiggins d'Anconia
Ken Farmer wrote: > I have tried this question in a couple of other places but the answers are > far above my current level of understanding of oop - which is the level of > very interested newbie - real newbie. So here goes again. > > I make an empty (of data) perl object1 with an included m

Re: Parameterizing a module

2005-12-07 Thread Wiggins d'Anconia
Shawn Corey wrote: > [EMAIL PROTECTED] wrote: > >> In my script, I load the module by saying "use PerlMQ;". However, now >> I want to >> load only certain use statements from the module depending on the >> parameter I >> give it. For example, in my script, I want to say "use PerlMQ >> qw(some_para

Extract text from file

2005-12-07 Thread Andrej Kastrin
Hello dears, I have a file in row data format, which stores different terms (e.g. genes) and look like: ABH HD HDD etc. Then I have second file which looks like: -- ID- 001 #ID number TI- analysis of HD pa

Re: Parameterizing a module

2005-12-07 Thread Todd W
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, > > I have a module which does nothing but include a bunch of use statements (Shawn > Corey, I think you taught me how to do that).It looks like this: > > -

Re: Parameterizing a module

2005-12-07 Thread Wiggins d'Anconia
Todd W wrote: [snip] > you could do something like this: > > $ cat TestMod.pm > use warnings; > use strict; > > package TestMod; > > use Exporter; > > sub import { > my $class = shift; > foreach my $module ( @_ ) { > require $module; > } > } > > 1; > > $ cat testrun.pl > use warni

Re: Extract text from file

2005-12-07 Thread Chris Charley
- Original Message - From: "Andrej Kastrin" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: "Perl Beginners List" Sent: Wednesday, December 07, 2005 12:00 PM Subject: Extract text from file Hello dears, I have a file in row data format, which stores different terms (e.g. genes)

Re: Parameterizing a module

2005-12-07 Thread Todd W
"Wiggins d'Anconia" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Todd W wrote: > > [snip] > > > you could do something like this: > > > > $ cat TestMod.pm > > use warnings; > > use strict; > > > > package TestMod; > > > > use Exporter; > > > > sub import { > > my $class = shift;

Re: Extract text from file

2005-12-07 Thread Shawn Corey
Andrej Kastrin wrote: Hello dears, I have a file in row data format, which stores different terms (e.g. genes) and look like: ABH HD HDD etc. Then I have second file which looks like: -- ID- 001 #ID number

Re: Extract text from file

2005-12-07 Thread Andrej Kastrin
Shawn Corey wrote: Andrej Kastrin wrote: Hello dears, I have a file in row data format, which stores different terms (e.g. genes) and look like: ABH HD HDD etc. Then I have second file which looks like: -

Re: Extract text from file

2005-12-07 Thread Andrej Kastrin
Chris Charley wrote: - Original Message - From: "Andrej Kastrin" <[EMAIL PROTECTED]> Newsgroups: perl.beginners To: "Perl Beginners List" Sent: Wednesday, December 07, 2005 12:00 PM Subject: Extract text from file Hello dears, I have a file in row data format, which stores differ

Re: Can't print to file

2005-12-07 Thread David Sudjiman
On Tue, 6 Dec 2005, John W. Krahn wrote: > Because the null filehandle inside the readline operator ( <> ) has special > magic which works together with the @ARGV array and the $^I scalar but does > not work with ordinary filehandles. > > See the "I/O Operators" section of perlop.pod for an explan

Re: Extract text from file

2005-12-07 Thread Shawn Corey
Andrej Kastrin wrote: and additional question: how does Perl know where are the input files (while we only wrote: open (TERM, $file_terms) or die "Can't open...)? It comes from the command line. The statements: my $file_terms = shift; my $file_medline = shift; are a shorten version of:

Re: Extract text from file

2005-12-07 Thread Shawn Corey
Andrej Kastrin wrote: I try your code; now I try to write each potential target in a record tab separated, like: TI- xx HD x AB- xxx HD x #record 1 TI- yy AB x AB- xxx AB x#record 2 etc... So \t separated within record and \n separ

Re: Parameterizing a module

2005-12-07 Thread vmalik
Thanks Shawn. But, in this case, how would we send a parameter to the module from the calling script. The module can see the name of the calling script, but I want to make my module available to other perl programmers, and let them have the flexibility of deciding which use statements they want fro

Re: Parameterizing a module

2005-12-07 Thread Shawn Corey
[EMAIL PROTECTED] wrote: Thanks Shawn. But, in this case, how would we send a parameter to the module from the calling script. The module can see the name of the calling script, but I want to make my module available to other perl programmers, and let them have the flexibility of deciding which u

Re: OOP inheritance question (simple)

2005-12-07 Thread Ken Farmer
Wiggins d'Anconia <[EMAIL PROTECTED]> wrote: See the other posters responses as well, but I think it might help if you read through some docs on OOP programming, check out: perldoc perlboot perldoc perltoot perldoc perltooc And issuing, perldoc perl Thanks for the response, and the other res

Re: OOP inheritance question (simple)

2005-12-07 Thread Wiggins d'Anconia
Ken Farmer wrote: > > Wiggins d'Anconia <[EMAIL PROTECTED]> wrote: > > See the other posters responses as well, but I think it might help if > you read through some docs on OOP programming, check out: > > perldoc perlboot > perldoc perltoot > perldoc perltooc > > And issuing, > > perldoc perl

Re: OOP inheritance question (simple)

2005-12-07 Thread John Doe
Ken Farmer am Donnerstag, 8. Dezember 2005 02.28: [...] > I agree that I need a perl object book. Not necessarily - it could even be better to buy a book that contains the OO paradigmas independent from any programming language. The details of the language (or the focus on implementation) cou

how to develop an editor in perl

2005-12-07 Thread kilaru rajeev
Hi, I got a doubt how to develop an editor that can be used to modify files and it has to provide movement of cursor from left to right or right. thanks and regards, Rajeev Kilaru