Re: Dumb Question: How to check if a string is empty

2001-01-06 Thread Carl Jolley
On Fri, 5 Jan 2001, Lawrence, Rob wrote: > This is sad > > How do you check to see if a string is empty? > > my $stuff > while($stuff "I don't know) > { > print "You must enter a value\n"; > $stuff = ; > } > You can check to see if it is equal to an empty string, e.g. if ($stuff eq '') {

Re: Dumb Question: How to check if a string is empty

2001-01-06 Thread Michael D. Schleif
Brian Steele wrote: > > I'm I missing something here? > > What about > > if(!$stuff) {print "string is empty"} What about: my $stuff = 0; -- Best Regards, mds mds resource 888.250.3987 "Dare to fix things before they break . . . " "Our capacity for understanding is inversely p

Re: Dumb Question: How to check if a string is empty

2001-01-06 Thread Brian Steele
r more Any characters? sort of like > #using $_ > unless /.+/ {print "nothing here\n"} > > regards, > bill naftel > > > -Original Message----- > From: "Lawrence; Rob" > Sent: Fri 1/5/2001 7:47 PM > To: "'[EMAIL PROTECTED]'" >

RE: Dumb Question: How to check if a string is empty

2001-01-06 Thread Naftel, Bill S
gards, bill naftel -Original Message- From: "Lawrence; Rob" Sent: Fri 1/5/2001 7:47 PM To: "'[EMAIL PROTECTED]'" Cc: Subject: Dumb Question: How to check if a string is empty Th

Re: Dumb Question: How to check if a string is empty

2001-01-05 Thread $Bill Luebkert
"Lawrence, Rob" wrote: > > This is sad > > How do you check to see if a string is empty? > > my $stuff > while($stuff "I don't know) > { > print "You must enter a value\n"; > $stuff = ; > } There's defined and there's empty. You can check for either or both. my $stuff; if ($stuff) {

Dumb Question: How to check if a string is empty

2001-01-05 Thread Lawrence, Rob
This is sad How do you check to see if a string is empty? my $stuff while($stuff "I don't know) { print "You must enter a value\n"; $stuff = ; } Any help is appreciated Rob ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.A