in reply to unable to resolve warning "Use of uninitialized value in ..."

Hi ..

if ( $process -> {ExecutablePath} ) { ...... Code Stuff .... }

The above will become true ony if it contains any values. It becomes false for "",'' and undef.
"Keep pouring your ideas"
  • Comment on Re: unable to resolve warning "Use of uninitialized value in ..."

Replies are listed 'Best First'.
Re^2: unable to resolve warning "Use of uninitialized value in ..."
by lepetitalbert (Abbot) on Oct 24, 2005 at 14:45 UTC

    Hi again, problem solved :

    if ( defined $process -> {ExecutablePath} ) { print LOG $process -> {ExecutablePath} . "\n\n"; }

    Thanks
    Have a nice day.