summaryrefslogtreecommitdiff
path: root/lib/Getopt
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-03-11 07:17:33 +0000
committerCharles Bailey <bailey@genetics.upenn.edu>1996-03-11 07:17:33 +0000
commit62c81c0b976dea996d718182c8de454c07dea568 (patch)
tree0ce91fe5a609e2d59c6c2324570e576ddc861e2a /lib/Getopt
parent10eba7639c3bcb517c1b98078c417b4c12eb09f4 (diff)
downloadperl-62c81c0b976dea996d718182c8de454c07dea568.tar.gz
Minor change to make -w clean
Diffstat (limited to 'lib/Getopt')
-rw-r--r--lib/Getopt/Long.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Getopt/Long.pm b/lib/Getopt/Long.pm
index 25bf704d34..5dd5d16b25 100644
--- a/lib/Getopt/Long.pm
+++ b/lib/Getopt/Long.pm
@@ -599,7 +599,7 @@ sub GetOptions {
# Make sure a valid perl identifier results.
my $ov = $o;
$ov =~ s/\W/_/g;
- if ( $c =~ /@/ ) {
+ if ( $c && $c =~ /@/ ) {
print STDERR ("=> link \"$o\" to \@$pkg","::opt_$ov\n")
if $debug;
eval ("\$linkage{\$o} = \\\@".$pkg."::opt_$ov;");