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

From: "Dharshana Eswaran" <[EMAIL PROTECTED]>
> Hi Randal,
>
> I am trying to generate an exe file from few perl programs.
>
> I have 4 files which are main.pl, subroutine1.pl, subroutine2.pl and
> subroutine3.pl.
>
> main.pl file is the main program and it depends on the other
> subroutine files for data.
>
> So i tried zipping it using winzip and ran
> > pp -o foldername.exe foldername.zip
>
> the exe file gets created as foldername.exe but when i tried runing it
> , it flags an error saying "Usage: D:\Perl\foldername.exe
> script_file_name."
>
> Can i know how to create the EXE file with all the files together?
>
> Thanks and Regards,
> Dharshana

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
===== [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>



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

Reply via email to