LWP::Parallel::UserAgent && use strict

Stefan Hornburg (racke@linuxia.de)
15 Jan 2000 17:02:06 +0100


You get warning messages from the marked line (Use of uninitialized value)

	if ($@) {
	    chomp($@);
	    $response->header('X-Died' => $@);
	} else {
	    # pass return value from callback through to implementor class
=>	  LWP::Debug::debug("return-code from Callback was '$retval'");
	    return $retval; 
	}
    }

You may write that line as:

LWP::Debug::debug("return-code from Callback was '" . defined($retval) ?
$retval : '' . "'");

Bye
        Racke

-- 
LinuXia Systems, eCommerce and more => http://www.linuxia.de/ or 0511-3941290.
Unsere Partner: Cobolt NetServices (http://www.cobolt.ch), CAPCON Systemhouse
(http://www.capcon-systemhouse.com), ecoservice gmbh (http://www.ecoservice.de)
Unser Fokus liegt auf Open-Source-Software (MiniVend, Debian GNU/Linux, etc.)