> Use 'defined'. If the scalar contains an empty string, defined will return false. > > if ( defined $somevar ) { > # $somevar might still be an empty string! > } > > Cheers, > Curtis "Ovid" Poe
Whoops! I meant "defined will return true", not "defined will return false" :) Cheers, Curtis "Ovid" Poe ===== Senior Programmer Onsite! Technology (http://www.onsitetech.com/) "Ovid" on http://www.perlmonks.org/ __________________________________________________ Do You Yahoo!? NEW from Yahoo! GeoCities - quick and easy web site hosting, just $8.95/month. http://geocities.yahoo.com/ps/info1 -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]