|< 1 2 >| | 17 Einträge, 2 Seiten |
1
2
3
if (param("src")) { param("runmode", "file") }
elsif (param("db")) { param("runmode", "db") }
...
1
2
3
4
5
6
7
my $event = {
'src' => \&sub_1,
'file' => \&sub_2,
'keyword' => \&sub_3,
};
$event->{$param->{'action'}}->();
1
2
3
4
5
6
$self->run_modes(
'index' => 'get_index',
'db' => 'getSiteFromDB',
'file' => 'getSiteFromFile',
'mmdw' => 'getSiteFromDreamweaver',
);
1
2
3
4
5
6
7
my $event = {
'src' => \&sub_1(q|attrib_1|),
'file' => \&sub_2(q|attrib_2|),
'keyword' => \&sub_3(q|attrib_3|),
};
$event->{$param->{'Runmode'}->()};
1
2
3
4
5
6
7
my $event = {
'src' => \&sub_1(q|attrib_1|),
'file' => \&sub_2(q|attrib_2|),
'keyword' => \&sub_3(q|attrib_3|),
};
$event->{$param->{'Runmode'}->()};
1
2
3
4
5
my $event = {
'src' => sub { sub_1(q|attrib_1|) },
'file' => sub { sub_2(q|attrib_2|) },
'keyword' => sub { sub_3(q|attrib_3|) },
};
1
2
3
4
5
6
sub sub_1 { die }
my $event = {
'src' => \&sub_1(q|attrib_1|),
'file' => \&sub_2(q|attrib_2|),
'keyword' => \&sub_3(q|attrib_3|),
};
1
2
3
4
5
6
7
my $event = {
'src' => \&sub_1(q|attrib_1|),
'file' => \&sub_2(q|attrib_2|),
'keyword' => \&sub_3(q|attrib_3|),
};
$event->{$param->{'Runmode'}->()};
|< 1 2 >| | 17 Einträge, 2 Seiten |