PDK Support

Installation Problems and FAQs for Perl Dev Kit

Matching newlines

Hello,

I am testing the wonderful PDK Filter Builder (v. 9.1.1 - OS Lion, ActiveState Perl 5.14) , but I am stuck with matching a newline (what in octal is \012 or LF, Line Feed).

I am able to match CR (Carriage Return), in Windows files, but not LFs.

Simple test case:

Input

first line
second line

Between "first line" and "second line" there is a LF character. The file has been saved with TextMate, under OS X.

Trying with "\n" or "\012" (with no quote signs) in the "Select lines form Input" field, with no success.

logicall error occurred when running in other machine

This is perl coding, running fine in my machine where written and convert exe, but while running in other machine, getting logical error. is sendkeys is not good program method?

use Win32::GuiTest qw(:ALL);

sub OpenFont { "^o"; } # l10n

# Let's see notepad
system("start Acrobat.exe");
sleep 1;
my $data_file=$ARGV[0];
if (-f $data_file) {
# Open the Font dialog
SendKeys(OpenFont);
SendKeys($data_file);
SendKeys("~");
SendKeys("%An~~y~");
SendKeys("^w");
SendKeys("^w");
}
if (-d $data_file) {
$dirname = $ARGV[0];

$app->MenuItemExecute ("File"); is not working

$app->MenuItemExecute ("File"); is not working

Fail to convert pl to exe

PerlApp couldn't convert the following codes

use strict;
use File::Copy;
use Win32::ChangeNotify;

my $path = 'd:\xml';

my $notify = Win32::ChangeNotify->new( $path, 0, 'FILE_NAME' );

my %last; @last{ glob $path . '/*.xml' } = ();

while( 1 ) {
print('Nothing changed'), next
unless $notify->wait( 10_000 ); # Check every 10 seconds
$notify->reset;
print $/, 'Something changed';
my @files = glob $path . '/*.xml';
if( @files < scalar keys %last ) {
delete @last{ @files };
print 'These files where deleted: ';

OS X binary created via perlapp on Windows fails on OS X with "Can't locate Foundation.pm"

I have a script which works on Windows & OS X. I'm using PerlApp on Windows 7 to compile for Windows and cross-compile for OS X. Everything works fine for Windows. Compiling for OS X works fine. But running the OS X binary on OS X produces the error "Can't locate Foundation.pm". AFAIK this is a standard module for OS X. But I also tried installing it with the following command "perlapp --target macosx-universal-32 --target-install Foundation" which gives the error "No package known for Foundation". I've Googled and searched in this forum but no luck. Anybody know how to fix this?

How to pass -CA switch to perlapp?

Dear support,
I'm having a perl program designed to get cmd line arguments in UTF8, therefore it's started
with

  perl -CA myscript.pl

and it works fine with that.

Now I'd like to compile that script with perlapp.
How do I specify the "-CA" switch to perlapp?

I already tried to put the option into the she-bang line, but then I get
the error message:

    Too late for "-CA" option at myscript.pl line 1

Thank you in advance!

Best regards,
Albert Cester

SFTP-Foreign

I am having a problem building a standalone file using PDK when I use the Net-SFTP-Foreign package in the script! I can run the perl script directly with no problems but, when I run the standalone version I get this:
Unable to load backend Unix: Can't locate Net/SFTP/Foreign/Backend/Unix.pm in @INC (@INC contains: /tmp/pdk-nafshari-30670/ /home/nafshari/arcmcdupdate/MCDUpdate) at (eval 143) line 1.

Have to note that I am also using NET-SSH-Expect in this script and that seem to be working ok!
Anyone knows what the problem is?

Perlapp and ActiveTCL

How do you get perlapp and activetcl to work?

perl -s issue for PerlApp

Hi,

When I converted my perl sript into the executable using PerlApp, the executable did not
run. There was a small microsoft message window showing up, saying the executable has
stopped working since the access violation reading a location. I find out the executable
would work if I change the following line in my perl script.

FROM:
#!/usr/bin/perl -s
TO
#!/usr/bin/perl

The issue is related to perl option -s. Any idea about the reason and how to fix it?
I need keep the option -s in my perl script. I run my executable on Windows.

Thanks,

Larry

perl executable generated by PerlApp did not work

Hi,

When I converted my perl sript into the executable using PerlApp, the executable did not
work. There was a small microsoft message window showing up, saying the executable has
stopped working.
I find out the executable would work if I change the following line in my perl script.

FROM:
#!/usr/bin/perl -s
TO
#!/usr/bin/perl

The issue is related to perl option -s. Any idea about the reason and how to fix it?
I need keep the option -s.

Thanks,

Larry