perl_seeker has asked for the wisdom of the Perl Monks concerning the following question:

Hi,
It seems a bit silly to be asking this , but here goes anyway.
I have been try to create an exe file of a Perl script and am using PerlApp which comes with ActiveState's PDK 5.0.

Has anyone used PerlApp to pack a .pl file along with text files and .pm's ? The general syntax is
perlapp yourscript.pl --add yourpm.pm --bind yourtextfile.txt[text,ext +ract,mode=]......
I need to set the mode of some text files to append mode. I can't seem to find the octal code for append mode in the
docs.For read mode I think it is mode=0555

I need to pack several .pm's and text files.The exe gets created and on running it the Perl/Tk text widget window
appears(I've used Tk for the GUI).But the code for some buttons in the application window don't work.

I'm getting 'Permission denied' in the text file open portion of code.My .pl script opens the same text file once in
read mode, and once in append mode.
Any suggestions?
Thanx:)

Replies are listed 'Best First'.
Re: ActiveState and Perl App
by smackdab (Pilgrim) on Oct 23, 2003 at 22:04 UTC
    You need to add "use Tk::Label" "use Tk::LabEntry" at the top of your main .pl file...PerlApp can't find them automatically.
      Hello,
      thanks for the reply, and sorry for the delay in replying. I've added the use Tk::Label and use Tk::LabEntry
      statements.But the code worked when I set the mode of the text files to 0777
      perlapp.......... --bind test.txt[text,extract,file=c:\test,mode=0777]; .............
      Thanx :)