Thread Variablen und mehrere BEGIN-Blöcke (5 answers)
Opened by RalphFFM at 2008-05-17 12:33

Gast Gast
 2008-05-17 13:19
#109836 #109836
Außerhalb des Blocks definieren.
Code (perl): (dl )
1
2
3
4
5
6
7
8
use strict;
use warnings;
our $var;
BEGIN { 
   $var="HELLO"; }
#
BEGIN { 
   print $var; }

View full thread Variablen und mehrere BEGIN-Blöcke