Re: simple problem

2002-09-19 Thread Dharmender Rai
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 using

Re: simple problem

2002-09-18 Thread James Edward Gray II
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

RE: simple problem

2002-09-18 Thread Nikola Janceski
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 to

Re: simple problem

2002-09-18 Thread pravesh biyaNI
thanks.. prblm solved!!! regards pravesh -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: simple problem

2002-09-18 Thread david
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 entering the

Strings as Numbers (was: Re: simple problem)

2002-04-30 Thread Todd Wade
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 alphanumeric

RE: simple problem

2002-04-29 Thread Hanson, Robert
-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 * from $tablename) || die 3: . $dbh-errstr

RE: simple problem

2002-04-29 Thread Jackson, Harry
-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. Is there any

RE: simple problem

2002-04-29 Thread Jackson, Harry
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,

RE: simple problem

2002-04-29 Thread Nikola Janceski
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 practice to cross post between mailing lists here

Re: simple problem

2002-04-29 Thread Sun-hee Kim
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 Keesler

Re: simple problem

2002-04-29 Thread Jeffrey . Seger
: 04/29/2002 Subject: Re: simple problem 11:57 AM

RE: simple problem

2002-04-29 Thread Jones Robert Contr TTMS Keesler
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

RE: simple problem

2002-04-29 Thread Jones Robert Contr TTMS Keesler
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){ ... .. Sorry about that On Monday 29 April 2002 08:50

Re: Simple problem goes astray

2001-06-11 Thread Jeff 'japhy' Pinyan
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 generator.