Hello,
I have been trying to create an exe file of a Perl script and am using PerlApp which comes with ActiveState's PDK 5.0.
I'm using PerlApp to pack a .pl file along with text files and .pm's
perlapp myscript.pl --add mypm.pm --bind mytextfile.txt[text,extract,f
+ile=c:\test,mode=0777]
--tmpdir c:\mycurrentdir
Suppose we set the --tmpdir option to the current folder in which we have the .exe file.Once we run the .exe file,
the text files packed with the .exe get extracted in a temp
folder inside the current folder in this way:
c:\mycurrentdir\pdk-username-856877
the process id gets appended to the folder name.So my .pl
script cant find the text files , since it searches only
the current folder and not any sub folders inside it.
Suppose I use stmts like this to open mytextfile.txt
in myscript.pl
open TF,'>mytextfile.txt' or die $!;
Can we make the .pl script search for mytextfile.txt in all
sub folders inside the current folder as well(mycurrentdir)
instead of just searching the current folder?
Thanks in advance.
:)
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.