yayalye has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I use pp as the command below to create a standalone executable file:
% pp -o hello.exe hello.pl -a data.txt.
In my hello.pl, I would like to open and read the content of the data.txt file as follows:
open FILE, "<data.txt" or die "Cannot open data.txt: $!";
However, when run the hello.exe , it return error like "cannot open data.txt: No such file or directory.".
What is the correct way to refer to the file in the hello.exe?
Thanks.