Thread Konstruktor (18 answers)
Opened by steffenw at 2005-08-02 12:16

steffenw
 2005-08-03 10:55
#56930 #56930
User since
2003-08-15
692 Artikel
BenutzerIn
[Homepage] [default_avatar]
... aha, jetzt weiß ich's auch.
Code: (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use warnings;
use strict;
sub s1 {
 print "s1\n";
 return "r1";
}
sub s2 {
 print "s2\n";
 return "r2";
}
sub new {
 print "new\n";
 print map "$_\n", @_;
}
my $mw = new s1(), s2();

Ausgabe ist:
s1
s2
new
r1
r2\n\n

<!--EDIT|steffenw|1123054733-->
$SIG{USER} = sub {love 'Perl' or die};

View full thread Konstruktor