Thread Perl-Prog funktioniert mal und mal nicht (23 answers)
Opened by Eng1958 at 2013-06-04 11:21

Eng1958
 2013-06-04 11:21
#167942 #167942
User since
2013-06-04
37 Artikel
BenutzerIn
[default_avatar]
Guten Morgen,

hat jemand eine Idee, warum der folgende Aufruf einmal funktioniert und einmal nicht.

Code: (dl )
1
2
3
C:\My\Work\Perl\getopt>\perl\bin\perl getopt-01.pl -a -b Test
a exists
b = Test


Code: (dl )
C:\My\Work\Perl\getopt>getopt-01.pl -a -b Test


Das Programm:
Code: (dl )
1
2
3
4
use Getopt::Std;
getopts ("ab:");
print "a exists\n" if $opt_a;
print "b = $opt_b\n" if $opt_b;



perl wird im Verzeichnis "C:\My\Work\Perl\getopt" gefunden.

Code: (dl )
1
2
3
4
5
6
7
8
9
C:\My\Work\Perl\getopt>perl -v

This is perl 5, version 16, subversion 2 (v5.16.2) built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)

Copyright 1987-2012, Larry Wall

Binary build 1602 [296513] provided by ActiveState http://www.ActiveState.com
Built Dec 19 2012 12:35:59


Ich verstehe es nicht, irgendwo muss etwas fehlen, habe aber keine Idee, was es sein könnte.

Danke und Gruß
Eng1958

modedit Editiert von pq: code-tags statt quote-tags
Last edited: 2013-06-04 11:41:26 +0200 (CEST)

View full thread Perl-Prog funktioniert mal und mal nicht