processing xml-files in cgi-environment

2006-08-11 Thread Dr. Claus-Peter Becke
dear members, i'm using xml::dom E.Ray's/J.McIntosh's XML&Perl book offers( i'm reading the german edition) a few examples. one of them in chapter 7 deals with processing an xhtml-file. i have substituted the xhml-file by a wellformed and valid xml-file. starting the perlscript bsp00_dom1.

xml-file processing

2006-08-04 Thread Dr. Claus-Peter Becke
dear members, i have a bundle of questions and hope that anybody is patient enough to listen to. i'm processing xml-files with perl. i'm using xml::dom and i'm learning about processing xml-files with perl by E.Ray's/J.McIntosh's XML&Perl book. i'm reading the german edition. they offer a f

if-clause again

2006-08-01 Thread Dr. Claus-Peter Becke
databaserequest_noun($col, $table, $case) is a self written function based on the dbi manual's proposals. here's the code: sub databaserequest_noun { my ($col,$table,$case) = @_; my $database = "lexikon"; my $hostname = "localhost"; my $dsn = "DBI:mysql:database=$database; host=$hostname"; my $

if clause

2006-07-31 Thread Dr. Claus-Peter Becke
dear members, using a subroutine's resulting argument in an if-clause i compare this string with another term. but although each of the term has the value of the other i don't achieve the result i'm looking for. if (($Q::partofspeech eq 'n')) { $table = $Q::partofspeech; $col = 'n_form'

pattern matching problems

2006-07-07 Thread Dr. Claus-Peter Becke
dear members, i'm new in the community. i have some problems processing the query-string exchanged between client and server. i would like to parse the query-string the following way: the query-string contains a sentence, for example: the cat lies on the mat. i have deleted the browser generat