Possibly use my $value = get_value_from_external_program || "defaultvalue";
-----Original Message----- From: Beast [mailto:[EMAIL PROTECTED] Sent: Friday, September 09, 2005 11:28 PM To: beginners@perl.org Subject: Use of uninitialized value When using use warnings; I receive this error msg? Use of uninitialized value in subroutine entry at... --- my $value = get_value_from_external_program; How do avoid such warning, because value is coming from external program thus I can't make sure that it will return a string or null. -- --beast -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>