Streaming HTML

2003-06-04 Thread Aldekein
Hello, I am writing a Perl program. The goal of it is to process streaming HTML site (To describe - the document that you load never end - the new information is added to the end and sent to the client connected, the connection is not closed after this so it will be used more and more). Depends o

RE: Re: how to compare to string variables

2003-06-04 Thread shrek
Or you can do if (lc($a2) eq lc($a2)) { # do something }else { # do something else } ;-) > Or even if you don't want them to be identical but just similar in that they > contain the same string somewhere within the variable, i.e. > > $a2 = 'Lambott'; > $a3 = 'fooLambottblah'; > > if (

RE: how to compare to string variables

2003-06-04 Thread Scot Robnett
Dennis, I agree, and it's good that they saw both of these e-mails. Your suggestion is faster and also condenses the script(good things of course)...but newbies need the exposure to the whole TMTOWTDI concept too. :) I also like your suggestion better because it just ignores the case of the string

Re: how to compare to string variables

2003-06-04 Thread Dennis Stout
> Or even if you don't want them to be identical but just similar in that they > contain the same string somewhere within the variable, i.e. > > $a2 = 'Lambott'; > $a3 = 'fooLambottblah'; > > if ($a3 =~ /$a2/) { > # do something > } > else { > # do something else > } > > or what if you want to m

RE: how to compare to string variables

2003-06-04 Thread Scot Robnett
Or even if you don't want them to be identical but just similar in that they contain the same string somewhere within the variable, i.e. $a2 = 'Lambott'; $a3 = 'fooLambottblah'; if ($a3 =~ /$a2/) { # do something } else { # do something el

RE: how to compare to string variables

2003-06-04 Thread Boon Chong Ang
If($a2 eq $a3) { ...} else {} Is this what you want? Thank you & best regards, ABC -Original Message- From: Annie [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 04, 2003 2:31 PM To: [EMAIL PROTECTED] Subject: how to compare to string variables I have two strings which I am recei

how to compare to string variables

2003-06-04 Thread Annie
I have two strings which I am receiving from two text fields in a form. I want to compare these... $a2='Lambott' $a3='Lambott' can anyone tell me how i can compare that the string inside a2 and a3 is similar. thanks - Do you Yahoo!? Free online calendar with syn

RE: DBI indexing question

2003-06-04 Thread Kristofer Hoch
CURDATE() has to be selected SELECT(CURDATE()); --- Bob Showalter <[EMAIL PROTECTED]> wrote: > Greenhalgh David wrote: > > ... > > Second question. If I use the following: > > > > my $query="CURDATE()"; > > my $sth->prepare($query); > > $sth->execute; > > > > I understand that $sth now just conta

Re: DBI indexing question

2003-06-04 Thread Greenhalgh David
The second one. (Except if you delete the largest number(s); they will be reused.) Second question. If I use the following: my $query="CURDATE()"; my $sth->prepare($query); $sth->execute; I understand that $sth now just contains the reference to the result of the query. Where is the value of the q

RE: DBI indexing question

2003-06-04 Thread Bob Showalter
Greenhalgh David wrote: > ... > Second question. If I use the following: > > my $query="CURDATE()"; > my $sth->prepare($query); > $sth->execute; > > I understand that $sth now just contains the reference to the result > of the query. Where is the value of the query (which should be today's > date

Re: DBI indexing question

2003-06-04 Thread Andrew Brosnan
On 6/3/03 at 8:09 PM, [EMAIL PROTECTED] (Greenhalgh David) wrote: > > This is more of a MySQL question than a cgi one, you can say that again > Are there any circumstances in which that vacant ID "5" will be > re-used, or will the ID continue to count up to 255 and then generate > errors? The

DBI indexing question

2003-06-04 Thread Greenhalgh David
Hi all, I just came across this list's archives getting the answer to a problem. Now I have my own questions to ask! This is more of a MySQL question than a cgi one, with luck someone will know the answer. I am managing a database from a set of cgi's, each entry in the database has an ID defin

Re: Running a .pl file in Windows opens a "File Download" window

2003-06-04 Thread mark sony
Hi, The simplest way would be to open a dos window and pass the perl executable with the prog. as argument. If Perl.exe is in C:\perl_local\bin and the program say foo.pl is saved in d:\examples\foo.pl then give this command C:\perl_local\bin\perl d:\examples\foo.pl The directories will vary