Win32::OLE->Option('CP') - encoding bug?

2010-10-13 Thread Ludwig, Michael
I think I've had the misfortune to run into a bug in the Win32::OLE encoding logic, or possibly at a deeper layer. But maybe there is something that I have not yet understood about this issue. So what is it about? One of the options for the Win32::OLE module is "CP", the codepage. The documentati

RE: How create a time object of VBS in perl?

2010-09-19 Thread Ludwig, Michael
>Could you tell me how create a time object of VBS in perl? Below > statement define a starting time and pass it to the getdata function > to get data in VBS: > > start_time = DateSerial( 2003, 01, 31) + TimeSerial( 6, 0, 0) > data_array = lpd.getdata(id, start_time) > > But I don't know how

RE: PerlScript/ASP: Unicode issue

2010-09-13 Thread Ludwig, Michael
> -Original Message- > From: Jan Dubois > Subject: RE: PerlScript/ASP: Unicode issue > > While the effect of Win32::OLE->Option(CP => Win32::OLE::CP_UTF8) > > was overridden in this case by the PerlScript engine eliminating > > all characters not in ANSI (CP_ACP), as Jan explained > > Tha

RE: PerlScript/ASP: Unicode issue

2010-09-13 Thread Ludwig, Michael
> -Original Message- > On Behalf Of Ludwig, Michael > Subject: PerlScript/ASP: Unicode issue > And here's the dysfunctional PerlScript code I derived the > VBScript version from: > > <%@ language=perlscript codepage=65001 %> > <% > use strict;

RE: PerlScript/ASP: Unicode issue

2010-09-13 Thread Ludwig, Michael
> -Original Message- > From: Jan Dubois > On Fri, 10 Sep 2010, Ludwig, Michael wrote: > > Is it %ActivePerl%\bin\PerlSE.dll implementing PerlScript? > > Yes. There isn't anything you can do with it directly > though; it is a registered COM component that mu

RE: Win32::OLE - Module Option "CP"

2010-09-13 Thread Ludwig, Michael
> -Original Message- > From: Jan Dubois > On Fri, 10 Sep 2010, Ludwig, Michael wrote: > > The Win32::OLE manual says the following about the CP option: > > > > > > This variable is used to determine the codepage used by all > > translations b

RE: PerlScript/ASP: Unicode issue

2010-09-13 Thread Ludwig, Michael
> -Original Message- > From: Jan Dubois > On Fri, 10 Sep 2010, Ludwig, Michael wrote: > > > > VBS generates a perfect document, but my PerlScript-ASP messes up > > Greek and Russian. > > The problem is the PerlScript engine. It does not support &g

RE: PerlScript/ASP: Unicode issue

2010-09-10 Thread Ludwig, Michael
> -Original Message- > On Behalf Of Ludwig, Michael > Sent: Friday, September 10, 2010 4:09 PM > Subject: PerlScript/ASP: Unicode issue > What's wrong with my code? Or am I running into some > PerlScript engine or COM interop limitation? I completely forgot

RE: PerlScript/ASP: Unicode issue

2010-09-10 Thread Ludwig, Michael
> Okay, sorry for the long-winded XML examples (maybe they'll > be useful for future generations); I stripped down the > example to plain text, which exposes the problem: [PerlScript snipped] > Süße Ödnis statt ärgerem Übel. > D'où vient que ça m'est égal? > St? 11,6% ? a?e???a t?? ?? > ???

PerlScript/ASP: Unicode issue

2010-09-10 Thread Ludwig, Michael
Here's a document containing some non-ASCII text. Süße Ödnis statt ärgerem Übel. D'où vient que ça m'est égal? Στο 11,6% η ανεργία τον Ιούνιο Реальная погода в Москве Here's the VBSript/ASP that generated it: <%@ language=vbscript codepage=65001 %> <% Option Explicit Function NewDom()

Win32::OLE - Module Option "CP"

2010-09-10 Thread Ludwig, Michael
The Win32::OLE manual says the following about the CP option: This variable is used to determine the codepage used by all translations between Perl strings and Unicode strings used by the OLE interface. The default value is CP_ACP, which is the default ANSI codepage. Other possible values a

RE: Hash performance v. hash size setting

2010-09-08 Thread Ludwig, Michael
> Because the actual process is rather slow--and I'm not sure there's > much to be done to speed things up, I try to pick up what snippets of > performance I can in the setup code, hence my query. I'd look for other things first: * execution model: persistent Perl process, or started anew? * ne

RE: PerlEx: DCOM 10004 and W3SVC 36 in eventvwr

2010-09-01 Thread Ludwig, Michael
> -Original Message- > On Behalf Of Ludwig, Michael > Sent: Monday, August 09, 2010 1:05 PM > Subject: PerlEx: DCOM 10004 and W3SVC 36 in eventvwr > > With PerlEx 3.0 on IIS 5.1 on XP Professional, I've seen the > system refuse to execute working scripts, and i

Compiling XML::LibXSLT and prereqs using MinGW

2010-08-31 Thread Ludwig, Michael
I want to install XML::LibXSLT using MinGW on ActivePerl 5.12 on XP Pro. A prerequisite is to have the sources of the underlying C libraries, which I downloaded from ftp://xmlsoft.org/libxslt/ . It is in compiling LibXSLT (the C library) that I'm having problems. People experienced with using th

RE: cpan vs. cpanplus

2010-08-31 Thread Ludwig, Michael
> -Original Message- > On Behalf Of Serguei Trouchelle > You don't need to compile anything. > Just copy > http://cpansearch.perl.org/src/PAULG/Logfile-Rotate-1.04/Rotat > e.pm to c:/perl/site/lib/Logfile, that would do. > > For compiling XS-modules, try running "ppm install MinGW" and

RE: Win32::OLE - "Member not found" in PROPERTYPUTREF

2010-08-19 Thread Ludwig, Michael
> -Original Message- > From: Ludwig, Michael > Quoted from the web: > > this looks like an indexed property. The correct syntax > to assign to them would be > > $COMComponent->LetProperty("Value", "Identity", $varUser

RE: Win32::OLE - "Member not found" in PROPERTYPUTREF

2010-08-19 Thread Ludwig, Michael
> -Original Message- > From: Ludwig, Michael > Subject: Win32::OLE - "Member not found" in PROPERTYPUTREF > > I encountered an issue using MSXML from Win32::OLE. > perl createProcessor.pl > Win32::OLE(0.1709) error 0x80020003: "Mitglied nicht gefu

Win32::OLE - "Member not found" in PROPERTYPUTREF

2010-08-19 Thread Ludwig, Michael
I encountered an issue using MSXML from Win32::OLE. MSDN - MSXML - createProcessor Method http://msdn.microsoft.com/en-us/library/ms753809%28VS.85%29.aspx There's a JScript example on that page, which works. I translated it to Perl (see script below), and I'm getting the following error message:

RE: IIS/Perl - best combination?

2010-08-11 Thread Ludwig, Michael
> -Original Message- > From: activeperl-boun...@listserv.activestate.com > On Behalf Of Lyle > On 11/08/2010 09:48, Henning Michael Møller Just wrote: > >> * PerlIS - don't know yet > >> > > ...or that rely on a complete cleanup between two iterations... > > I'm very interested in h

RE: IIS/Perl - best combination?

2010-08-11 Thread Ludwig, Michael
> -Original Message- > From: activeperl-boun...@listserv.activestate.com > On Behalf Of Henning Michael Møller Just > >Michael Ludwig wrote: > > * ASP/PerlScript - looks promising > > We tried this in the early ages of ASP. The main problem for us was > that when things failed it could b

RE: IIS/Perl - best combination?

2010-08-11 Thread Ludwig, Michael
> -Original Message- > From: activeperl-boun...@listserv.activestate.com > On Behalf Of Lyle > On 10/08/2010 21:52, Michael Ludwig wrote: > > * FastCGI - not sure, would prefer to rely on ActivePerl > > IIS7 FastCGI works with ActivePerl Thanks, Lyle. IIS7 - we're not there yet. Michae

RE: Past and presence of PerlEx and PerlIS

2010-08-11 Thread Ludwig, Michael
> -Original Message- > From: activeperl-boun...@listserv.activestate.com > On Behalf Of Jan Dubois > On Tue, 10 Aug 2010, Michael Ludwig wrote: > > > > What's the difference between PerlEx 3.0 and PerlIS? Or have they > > been merged? > > No, the merge never happened. PerlEx is however

PerlEx: DCOM 10004 and W3SVC 36 in eventvwr

2010-08-09 Thread Ludwig, Michael
With PerlEx 3.0 on IIS 5.1 on XP Professional, I've seen the system refuse to execute working scripts, and instead drop me an error and a warning in the Windows event log. The error is DCOM 10004, and it always followed by a warning W3SVC 36. I think the warnung is just a corrollary and wouldn't

RE: Programmatically compiling (perl -c) a Perl file

2010-08-05 Thread Ludwig, Michael
> -Original Message- > From: p sena > Well, might be possible with those hacks. However there would be some > more simpler solutions to this if we just need to compile check a list > of perl files. > For example a file 'a' consisting a statement of requiring file 'b' at > runtime, compile

RE: PerlEx, running 5.10 and 5.12 in parallel

2010-08-05 Thread Ludwig, Michael
> -Original Message- > From: Jan Dubois > On Wed, 04 Aug 2010, Ludwig, Michael wrote: > > In IIS, I have .plex mapped to the PerlEx30.dll shipped with AP > > 5.10, and .p12x mapped to the one shipped with AP 5.12. So far, > > looks like it works. > > I&#

PerlEx, running 5.10 and 5.12 in parallel

2010-08-04 Thread Ludwig, Michael
I have both 5.10 and 5.12 installed in parallel. I have not encountered any issues so far, but then I may have been lucky. In IIS, I have .plex mapped to the PerlEx30.dll shipped with AP 5.10, and .p12x mapped to the one shipped with AP 5.12. So far, looks like it works. I noticed there is only

Programmatically compiling (perl -c) a Perl file

2010-08-04 Thread Ludwig, Michael
As a basic quality check against a needy code base, I want to ensure that every file at least compiles (perl -c). Some don't because they are require'd at runtime by others and depend on them to have set their global variables. And some die due to stuff in their BEGIN blocks, which should go to