Thread Was ist in der Abfrage falsch ...? (2 answers)
Opened by jan99 at 2014-05-27 09:51

jan99
 2014-05-27 09:51
#175759 #175759
User since
2008-09-18
439 Artikel
BenutzerIn
[default_avatar]
HI !

ich habe innerhalb eines Sources zwei einfache if-Statements und wenn ich diese aktiv lasse, dann "knallt" es.

Der Bereich ist der ab Zeile 343
Code: (dl )
1
2
3
4
5
6
7
8
9
10
if !(defined($obj_area_current_start)){
print "id_area_current_start: *nicht gefunden!*\n";
} else {
print "id_area_current_start: ".$obj_area_current_start->id()."\n";
}
if !(defined($obj_area_current_end)){
print "id_area_current_end: *nicht gefunden!*\n";
} else {
print "id_area_current_end: ".$obj_area_current_end->id()."\n";
}


Kann mir einer sagen warum dann nachfolgende Meldungen kommen. Zur Vollständigkeit hängt das gesamte PM an diesem Posting.

Gruß Jan :-)

Jetzt der Report:

Quote
Z:\osmCreateGPX>perl osmCreateWay_HighwayMerger2.pl --osm=test2.osm --output=tes
t2_output_v2.osm --class=motorway --noname 1>report2.txt
syntax error at C:/strawberry/perl/lib/OSM/Tree/WayMerger2.pm line 343, near "if
!"
syntax error at C:/strawberry/perl/lib/OSM/Tree/WayMerger2.pm line 345, near "}
else"
Global symbol "$obj_area_current_start" requires explicit package name at C:/str
awberry/perl/lib/OSM/Tree/WayMerger2.pm line 346.
syntax error at C:/strawberry/perl/lib/OSM/Tree/WayMerger2.pm line 348, near "if
!"
Global symbol "$obj_area_current_end" requires explicit package name at C:/straw
berry/perl/lib/OSM/Tree/WayMerger2.pm line 348.
syntax error at C:/strawberry/perl/lib/OSM/Tree/WayMerger2.pm line 350, near "}
else"
Global symbol "$obj_area_current_end" requires explicit package name at C:/straw
berry/perl/lib/OSM/Tree/WayMerger2.pm line 351.
Global symbol "$obj_area_current_start" requires explicit package name at C:/str
awberry/perl/lib/OSM/Tree/WayMerger2.pm line 355.
Global symbol "$superway_start" requires explicit package name at C:/strawberry/
perl/lib/OSM/Tree/WayMerger2.pm line 356.
Global symbol "$obj_area_current_start" requires explicit package name at C:/str
awberry/perl/lib/OSM/Tree/WayMerger2.pm line 358.
Global symbol "$FirstObjType" requires explicit package name at C:/strawberry/pe
rl/lib/OSM/Tree/WayMerger2.pm line 359.
Global symbol "$FirstObj" requires explicit package name at C:/strawberry/perl/l
ib/OSM/Tree/WayMerger2.pm line 360.
Global symbol "$obj_area_current_start" requires explicit package name at C:/str
awberry/perl/lib/OSM/Tree/WayMerger2.pm line 360.
Global symbol "$obj_area_current_end" requires explicit package name at C:/straw
berry/perl/lib/OSM/Tree/WayMerger2.pm line 363.
Global symbol "$superway_end" requires explicit package name at C:/strawberry/pe
rl/lib/OSM/Tree/WayMerger2.pm line 364.
Global symbol "$obj_area_current_end" requires explicit package name at C:/straw
berry/perl/lib/OSM/Tree/WayMerger2.pm line 366.
Global symbol "$LastObjType" requires explicit package name at C:/strawberry/per
l/lib/OSM/Tree/WayMerger2.pm line 367.
Global symbol "$LastObj" requires explicit package name at C:/strawberry/perl/li
b/OSM/Tree/WayMerger2.pm line 368.
Global symbol "$obj_area_current_end" requires explicit package name at C:/straw
berry/perl/lib/OSM/Tree/WayMerger2.pm line 368.
Global symbol "$superdumper" requires explicit package name at C:/strawberry/per
l/lib/OSM/Tree/WayMerger2.pm line 375.
Global symbol "@superway_id" requires explicit package name at C:/strawberry/per
l/lib/OSM/Tree/WayMerger2.pm line 376.
Global symbol "$superdumper" requires explicit package name at C:/strawberry/per
l/lib/OSM/Tree/WayMerger2.pm line 376.
syntax error at C:/strawberry/perl/lib/OSM/Tree/WayMerger2.pm line 378, near "}"

Anhänge
text/plain
407 lines
WayMerger2.pm
perl-Greenhorn - Win7 64bit / strawberry (ehem. activeperl) - www.OpenStreetMap.de

View full thread Was ist in der Abfrage falsch ...?