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
sub getPaperSize {
my $din = shift || 'a4';
my $ori = shift || 'l';
my $scale = shift || 1000;
$din=lc($din);
$scale=lc($scale);
# die Liste ist in landscape vordefiniert
my %formate = (
"a0" => ('841,1189'),
"a1" => ('594,841'),
"a2" => ('420,594'),
"a3" => ('297,420'),
"a4" => ('210,297'),
"a5" => ('148,210'),
"a6" => ('105,148'),
"a7" => ('74,105'),
"a8" => ('52,74'),
"a9" => ('37,52'),
"a100" => ('26,37')
);
my($height,$width) = split( /,/, $formate{$din}, 2 );
my $height_meter=$height/1000*$scale;
my $width_meter=$width/1000*$scale;
if ($ori eq "p"){
$height<=>$width;
$height_meter<=>$width_meter;
}
# ToDo - Umrechnung in das Bogenmass
return ($width,$height,$width_meter,$height_meter);
}
QuoteUseless use of numeric comparison (<=>) in void context at osmMaperativeWanderbuch.pl line 289.
Useless use of numeric comparison (<=>) in void context at osmMaperativeWanderbuch.pl line 290.
QuoteBinary "<=>" returns -1, 0, or 1 depending on whether the left argument
is numerically less than, equal to, or greater than the right argument.
1 2
($height, $width) = ($width, $height); ($height_meter, $width_meter) = ($width_meter, $height_meter);