alw has asked for the wisdom of the Perl Monks concerning the following question:
I have a text file in the same directory as the script named hello.txt. I then want to make an executable using pp: >pp -a hello.txt -o test.exe test.pl This creates an executable, but unless a copy of hello.txt is in the same folder, it will not find it. The -a flag did put the hello.txt file in the archive, but the script can't find it. Any ideas?#!/usr/bin/perl # OS is windows XP perl 5.8.8 build 820 open FH,"hello.txt" or die "$!\n"; while ( <FH> ) { print; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: correct way to use pp -a
by walto (Pilgrim) on May 03, 2008 at 15:50 UTC | |
|
Re: correct way to use pp -a
by Cody Pendant (Prior) on May 03, 2008 at 21:39 UTC | |
by alw (Sexton) on May 05, 2008 at 02:37 UTC | |
|
Re: correct way to use pp -a
by perl-diddler (Chaplain) on May 02, 2008 at 23:14 UTC | |
by almut (Canon) on May 03, 2008 at 00:01 UTC |