Thread [Getopt::Long] meckert doppelte Options an (3 answers)
Opened by GwenDragon at 2011-11-08 18:55

pq
 2011-11-08 20:10
#154039 #154039
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
ich sehe im code von Getopt::Long:
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
        if ( exists $opctl->{$_} ) {
            $dups .= "Duplicate specification \"$opt\" for option \"$_\"\n";
        }
...
    if ( $dups && $^W ) {
        foreach ( split(/\n+/, $dups) ) {
            warn($_."\n");
        }
    }


also fragt das modul ab, ob globale warnings gesetzt sind.
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread [Getopt::Long] meckert doppelte Options an