Thread abgedrehtes problem mit switch: oder bin ich blind? (71 answers)
Opened by deepblack at 2004-06-16 21:56

pq
 2004-07-05 21:26
#83478 #83478
User since
2003-08-04
12209 Artikel
Admin1
[Homepage]
user image
[quote=ptk,05.07.2004, 18:54]
Natuerlich kann man in einem BEGIN-Block auch auf globale Variablen zugreifen:[/quote]
sogar auf lexikalische:
Code: (dl )
1
2
3
4
5
my $x;
BEGIN {
 $x = 1234;
}
warn $x;
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 abgedrehtes problem mit switch: oder bin ich blind?