RE: if-clause again

2006-08-02 Thread Charles K. Clarkson
Dr. Claus-Peter Becke wrote: : first of all a question without respect to my problem. what does : HTH mean? Hope that helps or, sometimes here in Texas it means hotter than Hell. : i would like of having returned a string value as printed by : "print @row". That is in a loop. There may

Re: if-clause again

2006-08-01 Thread Mumia W.
On 08/01/2006 08:13 AM, Dr. Claus-Peter Becke wrote: 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

Re: if-clause again

2006-08-01 Thread Tom Phoenix
On 8/1/06, Dr. Claus-Peter Becke <[EMAIL PROTECTED]> wrote: databaserequest_noun($col, $table, $case) is a self written function based on the dbi manual's proposals. here's the code: sub databaserequest_noun { ... $dbh->disconnect; } maybe anybody detects the reason why the return value become

RE: if-clause again

2006-08-01 Thread Charles K. Clarkson
Dr. Claus-Peter Becke wrote: : maybe anybody detects the reason why the return value becomes 1 Perl returns values from subroutines implicitly and explicitly. A 'return' statement is used to send an explicit return. Otherwise, the return value of the last statement is returned implicitly. Exp

Re: if-clause again

2006-08-01 Thread Dr.Ruud
"Dr. Claus-Peter Becke" schreef: > 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, $hostname) = ('lexikon', 'localhost') ; > my

Re: if clause

2006-07-31 Thread Mumia W.
On 07/31/2006 11:29 AM, Dr. Claus-Peter Becke wrote: Mumia W. schrieb: On 07/31/2006 07:20 AM, Dr. Claus-Peter Becke wrote: dear mumia w, thank for your support. as you supposed the values aren't equal. the subroutine's argument is "1". had databaserequest_noun been interpreted in scalar con

Re: if clause

2006-07-31 Thread Mumia W.
On 07/31/2006 03:45 AM, Dr. Claus-Peter Becke wrote: 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

RE: if clause

2006-07-31 Thread Charles K. Clarkson
Dr. Claus-Peter Becke wrote: : although for example the values of &databaserequest_noun : and $Q::lexicalentry both are 'Italy' i get the resulting : message "the entry isn't part of the database". what's : going wrong? databaserequest_noun($col, $table, $case) and $Q::lexicalentry are not bo