Leser: 27
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
if (defined $g_TagAttrs{'site_type'} && length $g_TagAttrs{'site_type'} > 0) { print "==> site_type gefunden !!!\n"; if ($g_TagAttrs{'site_type'} eq 'megalith') { print ".."; }elsif ($g_TagAttrs{'site_type'} eq 'tumulus') { print "==> tumulus zugewiesen !!!\n"; $icon_name = 'tumulus'; }elsif ($g_TagAttrs{'site_type'} eq 'fortification') { print "==> fortification"; }elsif ($g_TagAttrs{'site_type'} eq 'bigstone') { print "==> bigstone"; } } # endif else { print "==> site_type NICHT gefunden !!!\n"; } } # endif - site_type
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
my $site_type = $g_TagAttrs{'site_type'} || undef; my $lookup = { megalith => sub { print '..'; }, tumulus => sub { print "==> tumulus zugewiesen !!!\n"; $icon_name = 'tumulus'; }, fortification => sub { print "==> fortification"; }, bigstone => sub { print "==> bigstone"; } }; if (defined $site_type) { $lookup->{$site_type}->() if exists $lookup->{$site_type}; }
1 2 3 4 5 6 7 8 9 10
9.2777315 54.1269403 site_type:= tumulus --- megalith_type:= $VAR1 = { "_CATEGORY" => "historic", "site_type" => "tumulus", "historic" => "archaeological_site" }; ----------------- Bildname: acheolonical