Re: figuring out if a number/character string is null in Perl

2006-09-01 Thread Tyler Gee
On 9/1/06, Mary Anderson <[EMAIL PROTECTED]> wrote: >Thanks for the tip. I will try it, even though there is another suggestion ($fieldValue eq '') which works! Something can be defined to be '', so that perhaps defined or exists won't always work. That's why I said it depends on how it was

Re: figuring out if a number/character string is null in Perl

2006-09-01 Thread Jay Savage
On 9/1/06, Lou Hernsen <[EMAIL PROTECTED]> wrote: Well... he's right Right is a matter of opinion. Trolling is a matter of fact. And he's a troll. At this point, it doesn't really matter if he's right or wrong. Its confusing and overly complicated, in its multiple syntaxes, for a compiled lan

Re: figuring out if a number/character string is null in Perl

2006-09-01 Thread Tyler Gee
How have you assigned the variables to $fieldValue. Try 'exists' or 'defined' On 8/31/06, Ashok Varma <[EMAIL PROTECTED]> wrote: Hi, The best approach you go with is use regular expressions, rather that comparing them using relational operators. next unless($fieldValue =~ /(\W|\D)+/); the ab

Re: figuring out if a number/character string is null in Perl

2006-09-01 Thread Lou Hernsen
e the time right now to learn a new language. Rev. Lou Hernsen self employed - Original Message - From: "Paul Archer" <[EMAIL PROTECTED]> To: "Derek Ash" <[EMAIL PROTECTED]> Cc: Sent: Friday, September 01, 2006 10:07 AM Subject: Re: figuring out if a numbe

Re: figuring out if a number/character string is null in Perl

2006-09-01 Thread Paul Archer
Derek, it was nice of you to include your title and all. That way when a future (potential) employer Googles you, they'll know for sure that it was you that was this childish and immature. 8:13am, Derek Ash wrote: Perl Sucks! Derek Ash Application Programmer II University of Illinois Colleg

Re: figuring out if a number/character string is null in Perl

2006-09-01 Thread Derek Ash
Perl Sucks! Derek Ash Application Programmer II University of Illinois College of Medicine at Peoria One Illini Drive, Box 1649 Peoria, Illinois 61656-1649 >>> "Ashok Varma" <[EMAIL PROTECTED]> 8/31/2006 11:04:49 PM >>> Hi, The best approach you go with is use regular expressions, rather that c

Re: figuring out if a number/character string is null in Perl

2006-08-31 Thread Ashok Varma
Hi, The best approach you go with is use regular expressions, rather that comparing them using relational operators. next unless($fieldValue =~ /(\W|\D)+/); the above code will check if '$fieldValue' is a non alpha numeric and starts the next iteration if it is not. \W in the above code specifi

Re: figuring out if a number/character string is null in Perl

2006-08-30 Thread Owen
On Wed, 30 Aug 2006 15:44:53 -0700 (PDT) "Mary Anderson" <[EMAIL PROTECTED]> wrote: > > Hi All, >I know this isn't strictly a cgi problem, but it is arising in a cgi > application. I have a loop which reads certain fields, hashed on names. > Some of my fields hold character strings, some ho

Re: figuring out if a number/character string is null in Perl

2006-08-30 Thread Wiggins d'Anconia
Mary Anderson wrote: > Hi All, >I know this isn't strictly a cgi problem, but it is arising in a cgi > application. I have a loop which reads certain fields, hashed on names. > Some of my fields hold character strings, some hold numbers. Sometimes > the number field is a blank. I need a te

figuring out if a number/character string is null in Perl

2006-08-30 Thread Mary Anderson
Hi All, I know this isn't strictly a cgi problem, but it is arising in a cgi application. I have a loop which reads certain fields, hashed on names. Some of my fields hold character strings, some hold numbers. Sometimes the number field is a blank. I need a test on the field value $fieldVa