toadi has asked for the wisdom of the Perl Monks concerning the following question:
The output is following:sub init_parse { my $self = shift; my $root = $self->{'DOC'}->getDocumentElement(); print "$root\n"; &traverse($root); } sub traverse { my $node = @_; print "DEBUG: $node\n"; }
I know it's a reference, but I want to pass it too te next subroutine in my module. But it doesn't work. It's probably something obvious I'm looking over. My perl module writing skills are not that advanced :)XML::LibXML::Element=SCALAR(0x1e104c) DEBUG: 1
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: references and modules
by bwana147 (Pilgrim) on Jul 23, 2001 at 13:13 UTC | |
|
Re: references and modules
by Cybercosis (Monk) on Jul 23, 2001 at 13:15 UTC |