Thread Globale Variable in BEGIN Block setzen: Interaktion von my, our, undef und BEGIN (25 answers)
Opened by murphy at 2005-09-15 04:25

murphy
 2005-09-15 15:30
#58032 #58032
User since
2004-07-19
1776 Artikel
HausmeisterIn
[Homepage]
user image
[quote=format_c,15.09.2005, 13:15][...] Zeig  mal bitte deinen Code der bei dir ohne warnung funktioniert.

Gruß Alex[/quote]
Den Code habe ich schon gepostet!

Noch einmal für alle, die es nicht glauben wollen:
Code: (dl )
1
2
3
4
5
6
7
8
$ cat >test.pl
use strict;
use warnings;
my $stuff = undef;
BEGIN { $stuff = 1; }
print "$stuff\n";
$ perl test.pl
1


Keine Fehler, keine Warnungen! Und meine Perlversion steht in meinem letzten Posting.
When C++ is your hammer, every problem looks like your thumb.

View full thread Globale Variable in BEGIN Block setzen: Interaktion von my, our, undef und BEGIN