tigerstorms has asked for the wisdom of the Perl Monks concerning the following question:
I'm running in to some issues with the using the "XMLin" in my code writing. The code below
#!/usr/bin/perl use XML::Simple; my $opt = XMLin('foo.xml'); print $opt;
in the foo.xml there's just some random xml code but I created it for the site to cause the error I keep getting with other scripts I've got that use the XML::Simple commands. The error I get is
Undefined subroutine &main::XMLin called at first.pl line 3.
Now I've searched around for this error and found someone who have troubles with it on this site however the code
perl -we "use XML::Simple; print $INC{'XML/Simple.pm'}"returns an error not a file. the error being
syntax error at -e line 1, at EOF
Execution of -e aborted due to compilation errors.
I've tried removing XML::simple, and reinstalling it, though CPAN and from the download link on the owners site using the make install. I've also tried to reinstall perl 5.10.0, I'm using a debian linux server. Please show me the error of my ways.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: XML::Simple Issues
by Corion (Patriarch) on Dec 29, 2010 at 18:43 UTC | |
by tigerstorms (Initiate) on Dec 30, 2010 at 02:08 UTC | |
by Anonymous Monk on Dec 30, 2010 at 02:28 UTC | |
by tigerstorms (Initiate) on Dec 30, 2010 at 03:43 UTC | |
by Anonymous Monk on Dec 30, 2010 at 04:43 UTC | |
| |
by tigerstorms (Initiate) on Dec 30, 2010 at 05:59 UTC | |
|
Re: XML::Simple Issues
by codeacrobat (Chaplain) on Dec 29, 2010 at 21:47 UTC | |
|
Re: XML::Simple Issues
by isotope (Deacon) on Dec 29, 2010 at 19:44 UTC | |
by Jenda (Abbot) on Dec 29, 2010 at 21:39 UTC | |
by isotope (Deacon) on Dec 30, 2010 at 17:58 UTC | |
by tigerstorms (Initiate) on Dec 29, 2010 at 22:30 UTC | |
by isotope (Deacon) on Dec 30, 2010 at 18:03 UTC |