Leser: 3
|< 1 2 3 4 >| | 34 Einträge, 4 Seiten |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package test;
@EXPORT = qw(new,test,test2);
sub new
{
my $self = {};
$self->{"hallo"} = "";
bless $self;
return $self;
}
sub test
{
test2("Hallo Welt");
}
sub test2
{
print "0 : $_[0]\n";
print "1 : $_[1]\n";
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package test;
@EXPORT = qw(new,test,test2);
sub new
{
my $self = {};
$self->{"hallo"} = "";
bless $self;
return $self;
}
sub test
{
test2("Hallo Welt");
}
sub test2
{
print "0 : $_[0]\n";
print "1 : $_[1]\n";
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package test;
@EXPORT = qw(new,test,test2);
sub new
{
my $self = {};
$self->{"hallo"} = "";
bless $self;
return $self;
}
sub test
{
test2("Hallo Welt");
}
sub test2
{
print "0 : $_[0]\n";
print "1 : $_[1]\n";
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package test;
@EXPORT = qw(new);
sub new
{
my $self = {};
bless $self;
return $self;
}
sub test
{
$self->test2("Hallo Welt");
}
sub test2
{
print "\n";
my $i = 0;
foreach(@_)
{
print "$i : $_\n";
$i++; }
}
QuoteCan't call method "test2" on an undefined value at test.pm line 13.
|< 1 2 3 4 >| | 34 Einträge, 4 Seiten |