Leser: 1
7 Einträge, 1 Seite |
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
package Tree::Simple::Extended;
use base qw/Tree::Simple/;
use strict;
use warnings;
use Class::Param;
# return everything as utf-8
our $PARAM_UTF8 = 0;
=head1 Tree::Simple::Extended
Adaption von Tree::Simple: Hinzufügen benutzerdefinierter Felder.
=cut
sub new {
my $class = shift;
my $self = bless({}, $class);
$self->SUPER::new(@_);
return $self;
} # /new
1;
1
2
3
4
5
6
7
8
my $tree = Tree::Simple::Extended->new('.', Tree::Simple->ROOT);
$tree->addChildren(
Tree::Simple::Extended->new('|')->addChildren(
Tree::Simple::Extended->new("1"),
Tree::Simple::Extended->new("2"),
),
Tree::Simple::Extended->new("3"),
);
QuoteUse of uninitialized value in addition (+) at C:/Perl/site/lib/Tree/Simple.pm line 87.
Use of uninitialized value in addition (+) at C:/Perl/site/lib/Tree/Simple.pm line 100.
...
my $self = $class->SUPER::new( @_ );
7 Einträge, 1 Seite |