1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#!/usr/bin/perl use strict; use warnings; use utf8; use OSM::Tree; use OSM::Tree::Helper; use OSM::Tree::WayMerger; ... my $log=Log::File->open($config{logfile_name}); ... # Aufruf der Funktion für die Way-Suche my @superway_id_result = osmtree_waymerger(@data,$log); ....
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
package OSM::Tree::WayMerger ; use OSM::Tree::Helper; use strict; use warnings; use Data::Dumper; # JT Log-File-PM use Log::File; use base qw (Exporter AutoLoader); our $version='0.1'; our @EXPORT = qw (osmtree_waymerger ) ; ... sub osmtree_waymerger { waymerger(@_); } sub waymerger { my @data = shift; my $log = shift; ... #nachfolgend Zeile 126 $log->doublewrite("-- suchen der Anschluss-Elemente ---");
QuoteCan't locate object method "doublewrite" via package "OSM::Tree::Way" at C:/Perl
/lib/OSM/Tree/WayMerger.pm line 126, <> line 1.
2014-04-25T04:22:02 jan99sub waymerger
1 2 3 4 5
my @ab = ("a", "b"); my $c = "c"; my @abc = ("a", "b", "c"); testfunktion(@ab, $c); testfunktion(@abc);
Quote
Die Meldung dabei ist:
QuoteCan't locate object method "doublewrite" via package "OSM::Tree::Way" at C:/Perl
/lib/OSM/Tree/WayMerger.pm line 126, <> line 1.
1 2 3 4
print Dumper \@data; # Aufruf der Funktion für die Way-Suche my @superway_id_result = osmtree_waymerger($log,@data);
1 2 3 4 5 6
sub osmtree_waymerger { waymerger(@_); } sub waymerger { my $log = shift; print Dumper \@data;
2014-04-25T10:30:36 jan99Hier nun der Dumper
... würde ich gerne Posten - aber das wird auch bei einem kleinen Beispiel als zu lang gekennzeichnet.
2014-04-25T10:30:36 jan99Code (perl): (dl )1 2 3 4 5 6sub osmtree_waymerger { waymerger(@_); } sub waymerger { my $log = shift; print Dumper \@data;
my @superway_id_result = osmtree_waymerger($log,@data);
1 2 3 4 5
sub osmtree_waymerger { waymerger(@_); } sub waymerger { my @data = @{shift()}; my $log = shift;
QuoteGenerell musst du genauer arbeiten, sorry, wenn ich das so sage.
methode($instanz, @argumente);
$instanz -> method(@argumente);