par

Why can't Perl's PAR find the loadable object for Socket.pm?

I was using PAR::Packer to package my Perl application on Cygwin and then running it on HPUX. A simple hello world works well, e.g.: pp -p hello.pl That results in a.par and then on HPUX: parl a.par It works great. However when package a bigger application with many dependencies with -B bundle switch, no such luck, instead I get...

using par for formatting comments in code with international characters

Hi, I'm using Par (in linux) to get nice comments formatting quickly. The problem is that now I want to introduce comments that include some international characters, like áéíóú or äëïöü... The program Berkeley Par considers these international characters as 2 ASCII characters (I believe) and it outputs the comments somehow broken beca...

Why don't my system calls work in the Perl program I wrap with pp?

I have a Perl/POE/Tk script running on Win32 ActivePerl that calls executables using system. I created an exe of the script using pp. I can unpack the exe and see the executables off the root of the "zip" file directory, but when I run the exe and try to use the functionality of the system calls I get a "file not found" type of error; '...

Where does pp (PAR) unpack add (-a) files?

This is my attempt to cut through extraneous issues raised "Why don’t my system calls work in the Perl program I wrap with pp?" I have created a simple Perl script on a linux system: new-net:~/scripts # cat ls_test.pl @ls_out = `ls -l`; map { print "$_\n" } @ls_out; $out = `sh out_test.sh`; print "$out\n"; This script calls a simp...

Is there a way to package my unit tests with PAR or PerlApp?

I have an app that I pack into "binary" form using PerlApp for distribution. Since my clients want a simple install for their Win32 systems, this works very nicely. Now a client has decided that they need to run all unit tests, like in a standard install. However, they still will not install a normal Perl. So, I find myself in need...

Specify Width and Height of Plot

I have a panel containing three plots. How can I use par to specify the width and height of the main panel so it is always at a fixed size? ...

Trying to create a standalone app from a Perl script that uses tkx (Tcl/tk)

Here are my specs: OS X Tiger Perl 5.8 Using Tkx bundled with ActiveTcl v8.5 I've successfully created a standalone app with the above configuration using PAR/pp, but it's not a completely satisfactory solution: still requires Tcl/Tk to be installed opens up in a Tcl/Tk window with a default menu opens Terminal every time I run the ap...

Can PAR Packer generate stand-alone scripts?

I'm currently using the PAR Packer (pp) to package a couple of pl scripts such that they can be copied to a machine and "just work" without my client having to muck with CPAN. Unfortunately, the PAR Packer doesn't work for deep dependencies. For example, a script imports CHI::Driver::File but does not explicitly import Log::Any::Adapte...

How do I detect if a program is running within a PAR archive?

I'm working on a large Perl application which gets bundled with PAR, along with a bunch of support files. When the app is running within PAR, I can use PAR::read_file to get at these various files inside the archive. However, while I'm developing, I don't want to have to re-PAR the whole application every time I tweak some code. Is the...

Why does my Perl PAR application immediately die?

This is probably a newbie question as I have just started using pp. I read the documentation on CPAN and tried to create an executable for my application. I use Camelbox and Tk on Windows XP, PAR::Packager version 0.991 (PAR version 0.994). To make sure pp works I created a very simple hello_world.pl using Tk, compiled it into an .exe an...

C# how to Parse stored procedure String

Hi. I have a Query string from client application. It comes with all parameters like string query="PROCS.DBO.APP_2370_ANALYST_S 'ABC' , 'TESTDATA' , 100"; In Server, I made a function(Util.getParametersFromString) to parse string from client application to make parameter object Array using string.Split function. I used ',' and ...

Why do I get "version (5.12.2) doesn't match executable version" with Perl's PAR?

When I run the following to create an executable out of my Perl script: pp -o process_target_mode_data Process_Target_Mode_Data.pl I get the following error output: Perl lib version (5.12.2) doesn't match executable version (v5.12.0) at /home/Neil/ActivePerl-5.12/lib/Config.pm line 50. Compilation failed in require at /home/Neil/Ac...