Thread Perl und die Community: wieso weshalb warum (62 answers)
Opened by Rambo at 2004-05-08 17:59

ptk
 2004-12-16 18:34
#87341 #87341
User since
2003-11-28
3645 Artikel
ModeratorIn
[default_avatar]
Uebrigens werden auch bei perl unter Unix immer die Optionen interpretiert. Beweis:
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
$ cat /tmp/test.pl 
#!/usr/bin/perl -w
$x = $y + 1; # sollte eine Warnung werfen

$ /tmp/test.pl
Name "main::y" used only once: possible typo at /tmp/test.pl line 2.
Name "main::x" used only once: possible typo at /tmp/test.pl line 2.
Use of uninitialized value in addition (+) at /tmp/test.pl line 2.

$ /usr/bin/perl /tmp/test.pl
Name "main::y" used only once: possible typo at /tmp/test.pl line 2.
Name "main::x" used only once: possible typo at /tmp/test.pl line 2.
Use of uninitialized value in addition (+) at /tmp/test.pl line 2.

Beim ersten Aufruf wird die Shebang-Zeile verwendet, beim
zweiten nicht, trotzdem gibt es noch immer Warnungen.

View full thread Perl und die Community: wieso weshalb warum