On 12/4/06, Jenda Krynicky <[EMAIL PROTECTED]> wrote:

> > You are making it harder for yourself than you have to. Don't ZIP
> > anything ...
> >
> >         pp -o main.exe main.pl
> >
> > should be enough. And if the pp doesn't notice your main.pl uses
> > subroutineX.pl then try
> >
> >         pp -o main.exe main.pl subroutine*.pl
> >
> > Jenda
>
> Hi Jenda,
>
> I learnt that zipping wont help me and i tried the way you specified,
> like:
>
> pp -o main.exe main.pl subroutine*.pl
>
> But even that did not help me. It creates a EXE file, but when i try
> using it all alone without the other supported files, it says that
> "can't open subroutine.pl"
>
> This is the problem i encounter.
>
> Thanks and Regards,
> Dharshana

subroutine.pl?

Anyway .. if you run the main.pl it works, right?


Yeah, mail.pl works

If you run the created EXE in the same folder what does it do?


The created EXE in the same folder works

If you run it from a different folder?


From a different folder it flags a msg "Cannot open subroutine.pl" which i
have written in my main.pl like
unless (open(LINE, "subroutine.pl")) {
   die("Cannot open input file subroutine.pl\n");

So, the die statement is executed.


If you run it on a different machine?


The same action as described above happens  when run on a different machine

What happens if you add

BEGIN { print "Starting the execution of main.pl\n" }


If the above statement is added, it prints the above statement and then
prints the message as shown above, like:
Starting the execution of main.pl

Cannot open input file subroutine.pl


on the very top of main.pl? Do you get first this message and then
the one about subroutine.pl? And if that subroutine.pl even in the
same folder as the main.pl? Maybe you need to give pp the whole path
to this subroutine.pl



But the requirement is that the resulting EXE should not have any depending
files. So keeping subroutine.pl in the same folder does not satisfy the
requirement.

As, the resulkting file has to be distributed among ppl who does not have
any knowledge on Perl. So, they can only run the exe file.

And also, i wanted to know, if the EXE can be created in UNIX

Jenda
===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =====
When it comes to wine, women and song, wizards are allowed
to get drunk and croon as much as they like.
        -- Terry Pratchett in Sourcery


--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>



Please guide me in the same.

Thanks and Regards,
Dharshana

Reply via email to