Thread warum Meldung bei <=> (5 answers)
Opened by jan99 at 2013-08-16 11:09

jan99
 2013-08-16 11:09
#169598 #169598
User since
2008-09-18
439 Artikel
BenutzerIn
[default_avatar]
hi!

ich habe eine Funktion ...

Code: (dl )
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);
}


Kann mir einer sagen warum ..

Quote
Useless 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.


Angemerkt wird ?

Gruß Jan :-)
perl-Greenhorn - Win7 64bit / strawberry (ehem. activeperl) - www.OpenStreetMap.de

View full thread warum Meldung bei <=>