Thread Globale variable: in packages nutzen? (12 answers)
Opened by styx-cc at 2006-07-11 19:54

GwenDragon
 2006-07-11 20:11
#68056 #68056
User since
2005-01-17
14748 Artikel
Admin1
[Homepage]
user image
Code: (dl )
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/perl -w
use strict;

our $test = "teast";
print "main:: $test\n";
&foo::out();

package foo;
sub out {print __PACKAGE__ . ":: $test\n"};
1;


Geht doch ;)

View full thread Globale variable: in packages nutzen?