first of all remove that '=' sign and use '==' . again
to compare the strings use 'eq'.
--- pravesh biyaNI <[EMAIL PROTECTED]> wrote: > Hello
> Here is a very simple prblem which unfortunatly i
> am not able to solve.
> I want to compare a character to a variable and do
> accordingly. I am
>
Pravesh Biyani wrote:
> Hello
> Here is a very simple prblem which unfortunatly i am not able to solve.
> I want to compare a character to a variable and do accordingly. I am
> using an if loop for this!!
>
> but it seems that even if the variable is not equal to that character,
> it is enterin
thanks.. prblm solved!!!
regards
pravesh
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
See in-line comments:
> -Original Message-
> From: pravesh biyaNI [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, September 18, 2002 1:48 PM
> To: [EMAIL PROTECTED]
> Subject: simple problem
>
>
> Hello
> Here is a very simple prblem which unfortunatly i am not
> able to solve.
> I want
You're confusing = which means assign to with == which asks the
question, are these equal (numerically) or its cousin eq which asks are
these the same characters.
James
On Wednesday, September 18, 2002, at 12:48 PM, pravesh biyaNI wrote:
> Hello
> Here is a very simple prblem which unfortuna
"Jeffrey Seger" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
>
> if ( $tablename > 1) is going to evaluate to false since the numeric value
> of any string is 1.
Actually, its a little more complicated than this.
A string that starts with non-numeric alphanu
[EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: simple problem
Here's the code:
if ( $tablename > 1){
$sth = $dbh->prepare("SELECT * from $tablename") || die "3: " .
$dbh->errstr;
$sth->execute();
while (my @data = $sth->fetchrow_array){
.
#x27;t like the
crossposts... most of the time one answer is good enough.
> -Original Message-
> From: Jackson, Harry [mailto:[EMAIL PROTECTED]]
> Sent: Monday, April 29, 2002 12:03 PM
> To: [EMAIL PROTECTED]
> Subject: RE: simple problem
>
>
>
> Is it standard practic
Is it standard practice to cross post between mailing lists here or
unacceptable.
Harry
*
COLT Telecommunications
Registered in England No. 2452736
Registered Office: Bishopsgate Court, 4 Norton Folgate, London
No code,
No help
-Original Message-
From: Sun-hee Kim [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 29, 2002 10:51 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: simple problem
Hi,
I 'm trying to pull information from a form using mysql and perl. The form
has radio butto
com> Kim <[EMAIL PROTECTED]>, [EMAIL PROTECTED],
[EMAIL PROTECTED]
cc:
04/29/2002 Subject: Re: si
>-Original Message-
>From: Sun-hee Kim [mailto:[EMAIL PROTECTED]]
>
>if ( $tablename > 1){
>
>$sth = $dbh->prepare("SELECT * from $tablename") || die "3: "
>. $dbh->errstr;
Not sure if you have to or not but don't you need
$sth->prepare();
before execution or is that only Oracle
From: Sun-hee Kim [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 29, 2002 11:58 AM
To: Jones Robert Contr TTMS Keesler; Sun-hee Kim; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Subject: Re: simple problem
Here's the code:
if ( $tablename > 1){
$sth = $dbh->prepare("SELECT * fr
Here's the code:
if ( $tablename > 1){
$sth = $dbh->prepare("SELECT * from $tablename") || die "3: " . $dbh->errstr;
$sth->execute();
while (my @data = $sth->fetchrow_array){
...
..
Sorry about that
On Monday 29 April 2002 08:50 am, Jones Robert Contr TTMS
On Jun 11, Gary Luther said:
> 5 $new_name =~ tr/ \/&-/_sad/;
Why not use tr!!! instead of tr///? It'll read more easily. Or even:
tr{ /&-}
{_sad};
> 5 $new_name =~ tr/ \/&-<>/_sadlg/;
You didn't read the docs on tr///. The - character serves as a character
range genera
15 matches
Mail list logo