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
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 (
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
> 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
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
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
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
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
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
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
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
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
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
13 matches
Mail list logo