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
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.
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
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: ';
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?
Dear support,
I'm having a perl program designed to get cmd line arguments in UTF8, therefore it's started
with
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:
Thank you in advance!
Best regards,
Albert Cester
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?
How do you get perlapp and activetcl to work?
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
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