Minor change to make -w clean
Perl 5 Porters [Mon, 11 Mar 1996 07:17:33 +0000 (07:17 +0000)]
lib/Getopt/Long.pm

index 25bf704..5dd5d16 100644 (file)
@@ -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;");