The answer is that the fully qualified path name of the added file must be
used when creating the executable. Painful, but it works:
pp -o hello.exe -a "c:\Documents and Settings\malcolm\My
Documents\proj_pp_testing\text" hello_pl_file.pl
After the executable is created, I can delete the included file and the
created executable still works.
Wish list: To not have to use the fqpn.
----- Original Message -----
From: "the.noonings" <[EMAIL PROTECTED]>
To: "Autrijus Tang" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, May 24, 2004 4:31 PM
Subject: PAR::read_file question
Instead of producing "hello", the test below produces nothing. Am I doing
something wrong?
C:\Documents and Settings\malcolm\My Documents\proj_pp_testing>type text
hello
C:\Documents and Settings\malcolm\My Documents\proj_pp_testing>type
hello_pl_file.pl
#!/usr/bin/perl
my $text = PAR::read_file("text");
chomp($text);
print($text);
C:\Documents and Settings\malcolm\My Documents\proj_pp_testing>pp -o
hello.exe -a text hello_pl_file.pl
C:\Documents and Settings\malcolm\My Documents\proj_pp_testing>hello.exe
C:\Documents and Settings\malcolm\My Documents\proj_pp_testing>