Skip to content

Commit

Permalink
Quell undef string interpolation warnings
Browse files Browse the repository at this point in the history
For example:

Use of uninitialized value $CGI::remote_host in concatenation (.) or string at /path/to/interchange/lib/Vend/Error.pm line 102.
  • Loading branch information
jonjensen committed Jan 9, 2019
1 parent 6e05db2 commit d8e443d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Vend/Error.pm
@@ -1,6 +1,6 @@
# Vend::Error - Handle Interchange error pages and messages
#
# Copyright (C) 2002-2016 Interchange Development Group
# Copyright (C) 2002-2019 Interchange Development Group
# Copyright (C) 1996-2002 Red Hat, Inc.
#
# This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -36,7 +36,7 @@ use strict;

use vars qw/$VERSION/;

$VERSION = '2.16';
$VERSION = '2.17';

sub get_locale_message {
my ($code, $message, @arg) = @_;
Expand Down Expand Up @@ -97,6 +97,7 @@ sub interaction_error {
}

sub minidump {
no warnings 'uninitialized';
my $out = <<EOF;
Full client host name: $CGI::remote_host
Full client IP address: $CGI::remote_addr
Expand All @@ -115,6 +116,7 @@ EOF
}

sub full_dump {
no warnings 'uninitialized';
my $portion = shift;
my $opt = shift || {};
my $out = '';
Expand Down

0 comments on commit d8e443d

Please sign in to comment.