RE: Use of uninitialized value

Beast <mailto:beast@xxxxxxx> wrote:

: 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.

What do you want to do with $value when the external
program does not return a value?

One option is to supply a default value:

my $value = get_value_from_external_program || 'default';


my $value = get_value_from_external_program || '';


Charles K. Clarkson
Mobile Homes Specialist
254 968-8328