in reply to Re^2: Not able to install any module wiht "CPAN" commnad
in thread Not able to install any module wiht "CPAN" commnad

XML::LibXML::Document is strange and I can understand why you might be confused!

It exists as a package in XML::LibXML, and not in its own file. There is also a XML::LibXML::Document *documentation* file. Note that in that documentation the example code is ...

use XML::LibXML; # <--- $dom = XML::LibXML::Document->new( $version, $encoding );

You can't use XML::LibXML::Document because there's no file to load.

I presume that you can install other modules though (ones that actually exist as modules!) so you should probably change the title of your post to something like "can't load XML::LibXML::Document".

Replies are listed 'Best First'.
can't load XML::LibXML::Document
by slayedbylucifer (Scribe) on Mar 29, 2011 at 15:07 UTC

    SO I reinstalled XML::LibXML and my script started running. I do not know what difference it made, but yes, its working now.

    Yes, I am able to install other modules with can command. thanks for the pointer. I have changed the subject line.

    I sure need to understand how to confirm a package on cpan website. I presumed everything that has a "::" format is a package and I was wrong.

    Thank you very much to all for your timely and quick inputs..

Re^4: Not able to install any module wiht "CPAN" commnad
by slayedbylucifer (Scribe) on Mar 29, 2011 at 15:12 UTC

    SO I reinstalled XML::LibXML and my script started running. I do not know what difference it made, but yes, its working now.

    Yes, I am able to install other modules with can command. thanks for the pointer.

    I sure need to understand how to confirm a package on cpan website. I presumed everything that has a "::" format is a package and I was wrong.

    Thank you very much to all for your timely and quick inputs..