perl_seeker has asked for the wisdom of the Perl Monks concerning the following question:
Once we run the .exe file,the text files packed with the .exe get extracted in the c:\windows\temp folder in this way:perlapp myscript.pl --add mypm.pm --bind mytextfile.txt[text,extract,f +ile=c:\test,mode=0777]
My .pl script can't find the text file. I keep getting this error:open TF,'>mytextfile.txt' or die $!;
According to the PerlApp docs, if we use the 'extract' option with --bind:Tk::Error: No such file or directory at test.pl line 183.[\&main::chfi +le]
But the temp. folder in which the text files are extracted is not getting added to the PATH environment variable.The bound file is extracted into the TEMP directory upon application s +tart. It will be deleted when the application terminates. The extract +ion directory will be added to the PATH environment variable (as well + as to the LD_LIBRARY_PATH variable on Unix). It will also be added t +o the front of @INC.
2006-01-19 Retitled by Arunbear, as per Monastery guidelines
Original title: 'PerlApp'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Writing to a packaged file with PerlApp
by batkins (Chaplain) on Nov 11, 2003 at 14:00 UTC | |
by perl_seeker (Scribe) on Nov 14, 2003 at 09:18 UTC | |
|
Re: Writing to a packaged file with PerlApp
by chanio (Priest) on Nov 12, 2003 at 04:07 UTC | |
by perl_seeker (Scribe) on Nov 14, 2003 at 10:48 UTC |