Make sure $out is defined.
This commit is contained in:
1 parent
a1757d685f
commit
64dabaa872
1 file changed
+4
@@ -20,6 +20,10 @@ sub println
|
|||||||
{
|
{
|
||||||
my ($out) = @_;
|
my ($out) = @_;
|
||||||
|
|
||||||
|
if (!defined $out) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
my ($nl);
|
my ($nl);
|
||||||
if ($^O =~ /dos/i or $^O =~ /win/i or $^O =~ /netware/i) {
|
if ($^O =~ /dos/i or $^O =~ /win/i or $^O =~ /netware/i) {
|
||||||
$nl = "\r\n";
|
$nl = "\r\n";
|
||||||
|
|||||||
Reference in new issue
Block a user