Hi Monks,
This is my 1st time converting a pl file to exe. My pl script uses both XML::Twig and XML::Simple. Script runs perfectly when run as a pl file. I used PAR::Packer to convert it to an exe using
pp -o test2.exe exp.pl
I get the following error when I run the exe
Can't locate XML/SAX/Expat.pm in @INC (@INC contains C:\Users\XXX\JUNK CODE(0x277843c) CODE(0x27788cc)) at (eval 33) line 1.)
Based on some previous answers I tried to include this
pp -M XML::LibXML::SAX exp.pl
Now I get a new warning
Can't locate object method "new" via package "XML::SAX::PurePerl"
So I tried to include
pp -M XML::SAX::PurePerl exp.pl
My code does not even run. I had to reinstall padre and start over again. Any idea how to fix this issue? I am very new to perl and this is my first time converting a pl file to exe. I am using Perl 5.14.2. Any ideas?
Thanks Monks!
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.