Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Convertion Perl Script to Exe with PAR::Packer pp

by marchiore (Initiate)
on Jul 25, 2014 at 12:09 UTC ( [id://1095032]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Convertion Perl Script to Exe with PAR::Packer pp
in thread Convertion Perl Script to Exe with PAR::Packer pp

Thanks, executing with -x resolved this problem but my script access the xlsx file so when i run the exe file generated by pp i have the error:

Iniciando o envio de e-mails... IO error: opening script\jofalista.xlsx for read : No such file or dir +ectory at C:/strawberry/perl/vendor/lib/PAR.pm line 636. Cannot open script\jofalista.xlsx as Zip archive at Spreadsheet/XLSX.p +m line 33.
note: while pp is converting the program works fine, the problem happens when i'm execute de file exe.

Replies are listed 'Best First'.
Re^4: Convertion Perl Script to Exe with PAR::Packer pp
by Corion (Patriarch) on Jul 25, 2014 at 12:18 UTC

    Did you maybe forget to package the XLSX file as an additional file?

    Maybe now is a good moment to read the pp manpage?

      i have tried
      pp -x -o -a "jofalista.xlsx" gmail_att.pl
      but without success. If i package the file with -a can i change the xlsx after the compilation?? UPDATE: it works when i change in the script "__FILE__" to "$0" but i can't change the information in the xlsx. is it possible?

        No. You get the file embedded in the compiled result.

        Maybe you want to explain some more about why you're packaging things and what problems you're actually trying to solve?

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1095032]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (2)
As of 2024-04-25 20:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found