Roberich is correct.  It should take less than 1 sec for
a simple script.

I use this:

*OS*: Windows 10 Pro

*Perl*: ActiveState Perl64 - 5.16.3

*PAR*: PAR-Packer-1.013

I can upgrade PAR-Packer to 1.025 if you want me to
for checking purposes.

When I pack the script below it executes in less
than 1 sec and gives this shell output:


PS C:\Perl64\00MikeF> pp -o countlines.exe countlines.pl
Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4
Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Set up gcc environment - gcc.exe (rubenvb-4.5.4) 4.5.4
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.





#
#
# This program counts lines in the $filename file.
#
#
use strict;
use warnings;

my $lines = 0;
my $filename = 'SEHarris.txt';

chdir 'C:/Copy2';


open(FILE, $filename) or die "Can't open `$filename': $!";
while (<FILE>) {
    $lines++ if (tr/\n//);
}

close FILE;

print "Number of lines in file $filename is $lines\n";

__END__




On 3/16/2016 12:44 PM, par-digest-h...@perl.org wrote:
Subject:
PAR::Packer taking too long to convert
From:
Juan Mejia <jme...@kalibre.com.au>
Date:
3/15/2016 8:01 PM

To:
"par@perl.org" <par@perl.org>


Hi folks,

After installing PAR, I am trying to convert my first .pl to .exe with this command (pp -o Library_test.exe Library_test.pl). Everything, looks Ok except that it has been running for more than 30 minutes and haven’t got any results yet.

My environment is:

*OS*: Windows 10 Pro

*Perl*: Strawberry Perl 5.16.1.1

*PAR*: PAR-Packer-1.029

Would you be able to help me please?

Thanks for your help.

Juan


Reply via email to