Hi All! I need to pass object to a function. How can I do it?
How to make this code work?
use Tree::Simple;
sub SomeFunc
{
my $node = @_;
foreach my $child ($node->getAllChildren() )
{
...
}
}
my $tree = Tree::Simple->new("tree", Tree::Simple->ROOT);
SomeFunc( $tree );
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/
