kelly: import the package for perl

Beitrag lesen

ja, hallo...i checked the path

D:\Inetpub\CHEN\backup>perl -e "print qq(@INC)"
D:/Programme/Perl/lib D:/Programme/Perl/site/lib .

n i used remove [package] command to remove the xml-dom package...n then installed it again.

PPM> install xml-dom
Install package 'xml-dom?' (y/N): y
Installing package 'xml-dom'...
Bytes transferred: 53571
Installing D:\Programme\Perl\html\site\lib\XML\DOM.html
Installing D:\Programme\Perl\site\lib\XML\DOM.pm
Writing D:\Programme\Perl\site\lib\auto\XML\DOM.packlist

the package that i download is from this website

http://cpan.uwinnipeg.ca/module/XML::DOM   (Distribution download)

n when i

use XML::DOM;

it still cannot be found....shall i set path or set classpath to it like i work with java? if yes, how to set it?

Halihallo kelly

PPM> install xml-dom.ppd

Just try it with (if you want to install something else in the
future)

PPM> install XML-DOM

You don't have to download .ppd ressources, this can automatically
be done by PPM (of course the package must be held in the currenly
used active repositories).

and DOM.pm r in that directory....the generate date is in 2003, but not today ...strange....

Does your system-clock show the correct date? - Otherwise it would
really be strange (unless you've forgotten that you actually haven't
deleted the file as said...)

XML::DOM;
it still doesn't work....

Of course not, you must 'use' the package :-)
And "still doesn't work" is not a useful comment but warnings or
errors generated by perl were. So, could you be more specific?

What says

print "@INC"; # ?

Is 'D:\Programme\Perl\site\lib' in the list shown by executing the
perl-code above?

Viele Grüsse

Philipp