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

Gast Gast
 2004-07-06 12:45
#83480 #83480
[quote=pq,05.07.2004, 19:26][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;
[/quote]
Dabei greift das Hauptprogramm auf eine Variable des BEGIN Blocks zu - und nicht umgekehrt.

View full thread abgedrehtes problem mit switch: oder bin ich blind?