Rob,
this is really a quick-draw shot from the hip, & will probably be
shamefacedly apologized for later, but having said that, couldn't one
check for the presence of one or 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]'" 
        Cc: 
        Subject: Dumb Question: How to check if a string is empty
        
        

        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 = <STDIN>; 
        } 

        Any help is appreciated.... 
        Rob 
        _______________________________________________ 
        Perl-Win32-Users mailing list 
        [EMAIL PROTECTED] 
        
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users 

winmail.dat

Reply via email to