laziness, impatience, and hubris | |
PerlMonks |
XML::Simple error in compiled scriptby Smaug (Pilgrim) |
on Mar 01, 2005 at 06:23 UTC ( [id://435292]=perlquestion: print w/replies, xml ) | Need Help?? |
Smaug has asked for the wisdom of the Perl Monks concerning the following question:
Hello esteemed monks I have a scripts which reads in it's configuration from an XML file. If I run the script as the .pl file all is well. However after compiling the file with Perl2Exe I get a strange error in the XML::Simple module. I'm not sure how I've broken it..... Here it a scaled down version of what I do:
and here is the XML file As stated it runs fine as a .pl but gives the error: "Can't use string ("1") as an ARRAY ref while "strict refs" in use at PERL2EXE_STORAGE/XML/Simple.pm line 231." I have looked at line 231 in the module and it seems that it is expecting a reference which I am obviously not sending. 1. Can somebody please explain what I have done wrong? 2. Can somebody also explain why it only happens in the compiled script. Thank you oh nobel Monks. UPDATE: I have noticed that this does not happen XML::Simple 2.09. I am running ActiveState Perl 5.8.6.811 with XML::Simple 2.12. Thanks.
Back to
Seekers of Perl Wisdom
|
|