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.
  • Comment on How to refer to a data file in a exe file compiled using pp?

Replies are listed 'Best First'.
Re: How to refer to a data file in a exe file compiled using pp?
by Anonymous Monk on Mar 27, 2009 at 08:55 UTC