6 Einträge, 1 Seite |
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
27
28
29
30
31
32
33
34
35
36
use strict;
use warnings;
for (@ARGV) {
if(/stop/i){
&stop;
}
if(/start/i){
&start;
}
}
sub start
{
my ($TARGET, $NAME) = initialize();
print "$TARGET\n";
#print "$VER\n";
print "$NAME\n";
}
sub stop
{
my ($TARGET, $VER, $NAME) = initialize();
print "$TARGET\n";
print "$VER\n";
print "$NAME\n";
}
sub initialize
{
my $VER = "1.0";
my $TARGET = "ON";
my $NAME = "fritz";
return ($TARGET, $VER, $NAME);
}
my ($target, $name) = (&initialize)[0, 2];
1
2
3
4
5
6
7
my ($var1, undef, $var2) = methode();
sub methode{
my $ret1 = "hallo";
my $ret2 = "welt";
my $ret3 = "!";
return ($ret1,$ret2,$ret3);
6 Einträge, 1 Seite |