in reply to scope and packages

Read the documentation, perldoc XML::LibXML
my $obj = XML::LibXML->new();

Replies are listed 'Best First'.
Re^2: scope and packages
by pagod (Initiate) on Jun 26, 2009 at 09:55 UTC
    oh, so that was just this stupid error... well, I guess next time I'll try to open my eyes even wider when reading the manual!
    Thx a lot for pointing that out!

      To be honest, you shouldn't need the manual for this. The constructor for an object should always be called using the arrow notation. Calling something with colons means that you're calling it as a plain subroutine; calling it with an arrow means you're calling it as a method.

      --

      See the Copyright notice on my home node.

      Perl training courses

        yup, i guess i should also read the manual about OO-Perl... well, you gotta start somewhere! then again, the error message didn't really make it clear to me what the problem might have been