Vijay81 has asked for the wisdom of the Perl Monks concerning the following question:
Hi All Am new to perl and i have install ActivePerl in my windows Xp 32 bit system. Am trying to run a small script which create a xml file using use XML::Smart module. when ever i tried to run the script i get the below error, not sure where am making mistake. Any help please Error :
Script file content is :C:\QA\Projects\Perl>perl QAServerSetup.pl Can't locate Object/MultiType.pm in @INC (@INC contains: C:\Perl\lib\P +LJava-0.04 C:/Perl/site/lib C:/Perl/lib .) at C:/Perl/lib/XML/Smart.pm line 18. BEGIN failed--compilation aborted at C:/Perl/lib/XML/Smart.pm line 18. Compilation failed in require at QAServerSetup.pl line 3. BEGIN failed--compilation aborted at QAServerSetup.pl line 3.
Also, i need to know how to install the perl modules using PPM window and if any of the modules installed manually(tar files,unzipped) then where we need to put those module files into(location) ??? Thanks, V#!/bin/perl -w use lib 'C:\Perl\lib\PLJava-0.04'; use XML::Smart; ## Create a null XML object: my $XML = XML::Smart->new() ; ## Add a xml server to the list: $XML->{configuration} = { version => '0.7.1.136' , savepassword => 'True' , } ; $XML->save('newfile.xml') ;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Can't locate Object/MultiType.pm Error
by marto (Cardinal) on Nov 28, 2012 at 11:10 UTC | |
by Vijay81 (Acolyte) on Nov 28, 2012 at 15:52 UTC | |
Re: Can't locate Object/MultiType.pm Error
by tobyink (Canon) on Nov 28, 2012 at 11:08 UTC | |
Re: Can't locate Object/MultiType.pm Error
by choroba (Cardinal) on Nov 28, 2012 at 11:08 UTC |
Back to
Seekers of Perl Wisdom