Re: In need to efficiently retrieve HTTP

2012-11-24 Thread Jenda Krynicky
- Because it's all backwards! - Why is that? - Because it's hard to read. - Why? - Please do not top post! From: Tobias Hoellrich > Hi Daniel - > http://stackoverflow.com/questions/6473785/improving-lwpsimple-perl-performance > should bring you on the right track. If you want to avoid multiple

Re: How to Use XML::Parser to Reduce an XML file to what is wanted

2012-11-01 Thread Jenda Krynicky
From: Paul Rousseau > I have an .xml file that I want to search for specific items, ignoring the > remaining items. > > I want to be able to maintain the .xml file integrity, so I want to open the > original and after finding what I am looking for, dump the results to a > second file. > > I am

Re: Win32::Fileop choose multiple directories

2012-07-30 Thread Jenda Krynicky
From: Arjun Roychowdhury Date sent: Mon, 23 Jul 2012 16:47:08 -0400 Subject:Re: Win32::Fileop choose multiple directories To: perl-win32-users@listserv.activestate.com > Thank you. That's unfortunate. > Is multiple directory selec

Re: Win32::Fileop choose multiple directories

2012-07-23 Thread Jenda Krynicky
From: Arjun Roychowdhury > Hi, I am looking for a perl API that presents a windows style dialog > to users and allows them to select multiple folders. While perl::Tk > has FileSelect and DirTree etc they don't have the native windows look > and feel. > In reading > http://search.cpan.org/~jenda/W

Re: directory listing of "Computer" on win32

2012-03-14 Thread Jenda Krynicky
> I am clueless how to do a directory list starting at the very root > "Computer" which includes all drives. > > What I am doing to get a directory tree is this: > my $directory = ""; > opendir DIR, $directory; > my @files = readdir DIR; > closedir DIR; > > But it only start at one dr

Re: Changing Subject color using MIME::Lite

2010-08-22 Thread Jenda Krynicky
From: A F > Hi All, > > Is there a way to make the subject (not the body) of the email sent by > MIME::Lite in different color like red or something? > > sub sendmail { >    my ($to,$cc,$subject,$data) = @_; >  my $msg = MIME::Lite->new( >  From =>'"$from", >  To =>"$to", >  Bcc=>"$

Re: How to simulate VB "Casting" for $perl_objects via Win32::OLE?

2009-12-18 Thread Jenda Krynicky
Date sent: Thu, 17 Dec 2009 12:36:27 -0600 Subject:Re: How to simulate VB "Casting" for $perl_objects via Win32::OLE? From: "w...@serensoft.com" To: Jenda Krynicky Copies to: perl-win32-users@listserv.activestate.com > That looks like a utility t

Re: How to simulate VB "Casting" for $perl_objects via Win32::OLE?

2009-12-17 Thread Jenda Krynicky
Subject:How to simulate VB "Casting" for $perl_objects via Win32::OLE? > Short version: how can we simulate .NET/VB object-type CASTing, in > Win32::OLE Perl? > > Long version: > > We're building a bridge between a java-web-app and a .net-based-desktop app. > Perl is the glue language of

FYI: IIS, Windblows Jehovista SP1 and partial response

2009-08-29 Thread Jenda Krynicky
Yesterday I noticed that by webbased Perl scripts stopped working. That is the scripts ran OK, but the webserver (IIS7.0 under Windows Vista SP1) only sent part of the output. Both IE8 and Google Chrome kept on waiting for the rest of the pare until timeout, LWP::UserAgent sometimes returned th

RE: Win32::ODBC

2009-05-06 Thread Jenda Krynicky
From: "Paul Rogers" To: Subject:RE: Win32::ODBC Date sent: Wed, 6 May 2009 14:43:53 -0400 > I'd suggest you strongly consider switching to DBI/DBD::ODBC (1.21). > Win32::ODBC is obfuscated. I believe you mean "obsolete" (should not be used because something better is availab

Re: perl to dll?

2009-04-19 Thread Jenda Krynicky
From: Daniel Burgaud > Hi All, > > I know there is a perl to exe, but what about a perl to dll? > > Dan PerlCtrl from ActiveState's PDK. That is if you want a COM/OLE DLL. = je...@krynicky.cz === http://Jenda.Krynicky.cz = When it comes to wine, women and song, wizards are allowed

Re: IO::Socket (client program sends simple text file containing CRLF newlines)

2009-03-13 Thread Jenda Krynicky
From: "Greg Aiken" > I have a simple 10 line ascii text file: > > > line1CRLF > line2CRLF > . > line10CRLF > > where CRLF is really two bytes (hex 0d)(hex0a). > > I use IO::Socket as basis for a client program. > my program opens the above referenced file (for read), then reads each line >

Re: query on dynamic

2008-12-03 Thread Jenda Krynicky
From: p sena <[EMAIL PROTECTED]> > Could someone pls explain me behind the hood thing for -- > $x = "041" > $y = 12 > then $z = $x + $y, how this comes to be numeric addition. In Perl + is always numeric addition. Always. No matter what the operands are. As such it first evalua

Re: Perl and XLS operation

2008-11-24 Thread Jenda Krynicky
From: <[EMAIL PROTECTED]> > I want to writting a perl script which let me override/edit > the existing or created XLS. But I am unable to do that. I am not sure, > do I have to use few more CPAN module or what . Your help in this > regard will be > appreciated. Please find the sn

Re: Getting the current code page, open with UTF-8

2008-08-19 Thread Jenda Krynicky
Date sent: Tue, 19 Aug 2008 13:04:36 +0900 From: "Ben Bullock" <[EMAIL PROTECTED]> To: perl-win32-users@listserv.activestate.com Subject:Getting the current code page, open with UTF-8 > I am using Win32::OLE to automate Microsoft W

Re: Help with DBI and SQL Server

2008-08-18 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > Hello all > I am trying to use a perl script to pull information from a SQL > 2000 database > The problem I am having is with authentication using an Active directory > account. The script works > just fine if I use an account defined in SQL. > below is my sampl

Re: module to convert text to tiff ???

2008-06-22 Thread Jenda Krynicky
Date sent: Sun, 22 Jun 2008 18:41:27 -0500 From: Mike Schleif <[EMAIL PROTECTED]> To: perl-win32-users mailing list Subject:module to convert text to tiff ??? > I'm searching cpan; but, I do not find what we need. > > We want to convert text documents to tiff format. > > What

Re: templates for parsing similar documents ???

2008-06-22 Thread Jenda Krynicky
From: Mike Schleif <[EMAIL PROTECTED]> > We have a project in which we receive invoices from many vendors. > > We will parse a series of fields from each invoice & save them to a > database. > > Assuming: > > [1] Every vendor's invoices will differ significantly by vendor. > > [2] All invoice

Re: use FileHandle;

2008-04-17 Thread Jenda Krynicky
From: "Adam R. Frielink" <[EMAIL PROTECTED]> > I have a basic project in which I need to break a larger file down into > 35 separate files. I was under the impression that use FileHandle would > store the object in $fh. I could then create a a copy of my file, save > the associated object in a ha

Re: Perl-Win32-Users Digest, Vol 19, Issue 15

2008-02-25 Thread Jenda Krynicky
> "David Golden" <[EMAIL PROTECTED]> wrote on 02/23/2008 03:00:19 PM: > > my $regex = join q{}, map { $num2chars[$_] } @digits; The only thing I would object to is the q{}. There's really no point in using the q{} operator ... it just confuses the point here. my $regex = join '', map { $num2c

Re: Happy 20th Birthday, Perl!

2007-12-18 Thread Jenda Krynicky
From: [EMAIL PROTECTED] (Chris Wagner) Subject:Re: Happy 20th Birthday, Perl! > Omedetou gozaimas Perl-san!! ^^ Vsechno nejlepsi k narozeninam, Perle. Všechno nejlepší k narozeninám, Perle. Jenda (Not sure the accents will make it everywhere so once witho

Re: System Calls

2007-12-12 Thread Jenda Krynicky
From: Jerry Kassebaum <[EMAIL PROTECTED]> > On my Windows XP this line: > > `copy $source\\$_ $dest`; > > will copy files from c:\whatever\whatever\file.ext to the directory > the Perl script is in, but not to $dest. How do I make it copy to > $dest? > > FYI, $source="c:\\whatever\\whatever"; s

Re: Help with USB Printer

2007-12-10 Thread Jenda Krynicky
On 10 Dec 2007 at 10:50, Kenneth Ölwing wrote: > > I have written a PERL/Tk program to take input from a user and to > > print a report back based on the data. It works fine on my Windows > > XP system with an HP Laserjet 6MP connected to a standard parallel > > port (LPT1). When I copy the progra

Re: Another Win32::ODBC issue

2007-12-03 Thread Jenda Krynicky
From: "Barry Brevik" <[EMAIL PROTECTED]> > Now that I have got this module to work, and it IS a really cool module, > I have encountered another mystery. I said this a few times, maybe even to you, but anyway ... don't use the module. It's old and virtually unsuported anymore and even though it

RE: Config::IniHash and Unicode INI file

2005-04-01 Thread Jenda Krynicky
From: "Bullock, Howard A." <[EMAIL PROTECTED]> > I apologize for the previous post that was sent prematurely. > > After reading the IniHash.pm I found that I could pass The ReadINI > method a scalar reference. So my solution is: > > use Encode; > open(FH, "<:encoding(UTF-16)", $file); >

Re: 4 arg select on win32!

2003-06-25 Thread Jenda Krynicky
From: Tom Henrik Aadland <[EMAIL PROTECTED]> > I have a server which I'm suppose to port from unix to win32, the > problem > seems to be with 4 arg select which according to different documents > should work on win32 with sockets. The purpose is to block until a > client tries to connect and send

Re: Random Numbers

2003-06-23 Thread Jenda Krynicky
From: Jarrett Malone <[EMAIL PROTECTED]> > Let me apologize is advance if this is > wrong list or has already been addressed etc. > rand seems to produce an abnormally high > number of zeros, like 20 or 30 per million > > active perl binary v5.8.0 Build 804 > > > $t = 0; > for($k=0;$k<1000

Re: PPM error

2003-03-12 Thread Jenda Krynicky
From: Jan Dubois <[EMAIL PROTECTED]> > On Tue, 11 Mar 2003 22:58:47 -0800, Christopher Hahn > <[EMAIL PROTECTED]> wrote: > >I was about to post a question, but it seems that I know the reason > >for my difficulties now, but am going to go ahead and post the > >problem. > > > >Then I added Jenda's a

Re: How To Create a MS Word Document

2003-01-24 Thread Jenda Krynicky
From: michael higgins <[EMAIL PROTECTED]> > >>I want to create an MS Word document from a perl program. Would I > use >>Win32::OLE or another module? Can you point me to any > documentation / > sample > >>code / etc.? > >> > >>Wes Not sure this is useable at this time, but there is also ht

RE: Perl 5.8, Win32::OLE and exceptions

2003-01-20 Thread Jenda Krynicky
From: Steven Manross <[EMAIL PROTECTED]> > Although I don't have 5.8 to test on, is there any chance that you > playing with the Win32::OLE::Warn value might help? > > $Win32::OLE::Warn = 0; > > I set this to 0 a lot in some scripts where I expect that OLE will > find an error,

[ANN] Win32::Daemon::Simple 0.1.0

2002-10-31 Thread Jenda Krynicky
I've just uploaded a new module to my pages at http://Jenda.Krynicky.cz It should help you create Windows services. If your service only needs to wake up once every N minutes all you need is to tell Win32::Daemon::Simple how to name it, what account to install it under, what parameters you wa

RE: difficulties mailing on win32 - none on Unix

2002-10-22 Thread Jenda Krynicky
From: "Ronan Oger" <[EMAIL PROTECTED]> > You wrote: > > >1. Please do not top-post. > > > >2. Please read the message you reply to! I did not ask, I was > >replying to M.Hall. HE was having problems. And he tried Net::SMTP > >and Mail::Sender modules that are NOT dependent on sendmail > >executabl

Re: [PBML] Can't access from Command Line

2002-10-22 Thread Jenda Krynicky
From: "William Martell" <[EMAIL PROTECTED]> > I am having trouble accessing Perl from the command line. I am > running W2k Server, IIS 5. > > I have reinstalled perl after I found this problem and it still does > not work. > > I also checked the register under scriptmap and I added .pl > to/the/

RE: difficulties mailing on win32 - none on Unix

2002-10-22 Thread Jenda Krynicky
-Original Message- > >From: [EMAIL PROTECTED] > >[mailto:activeperl-admin@;listserv.ActiveState.com]On Behalf Of Jenda > >Krynicky Sent: Tuesday, October 22, 2002 7:04 PM To: > >[EMAIL PROTECTED]; > >[EMAIL PROTECTED] Subject: Re: difficulties mailing > >on win

Re: difficulties mailing on win32 - none on Unix

2002-10-22 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > I am new to this list, (and a bit of a newbie with perl), so apologies > if this has been covered before - I have searched the faqs but can > only find standard examples. > > Anyhow, I have some scripts which use Net::SMTP to mail data, and > these have

Re: [PBML] Regex With Common Applications

2002-10-21 Thread Jenda Krynicky
From: "William Martell" <[EMAIL PROTECTED]> > - > Hello Perl Users, > > I am curious whether there is a way to search a data store for a list > of values and if any of those values are matched, replace it with a > single common value. > >

Re: Send email in ActivePerl using SMTP

2002-06-06 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > I tried the following to use SMTP to send email: > >use Net::SMTP; >$optServer = 'luxn.com'; >$optFrom = "[EMAIL PROTECTED]"; >$optTo = "[EMAIL PROTECTED]"; >$smtp = Net::SMTP -> new ("luxn.com"); >$smtp -> mail($optFrom); > ... > > It say: > >

Re: Potential new module to get information on an arbitrary Win32 process

2002-04-06 Thread Jenda Krynicky
PerfLib > (the full pathname of the executable is what I was really interested > in). > > So I have written (with assistance and advice from Dave Roth, Jenda > Krynicky, and the authors of CygWin, among others) a module > specifically to return process information. It requires either WMI o

Mail::Sender - authentication + design questions

2002-03-25 Thread Jenda Krynicky
I would like to get some input from the general public on a few issues with Mail::Sender. 1) Will anyone mind if the SendX() methods will return the Mail::Sender object instead of the 1 they used to? This would allow chaining the method calls like this : eval { (new Mail::

Re: [Perl-unix-users] What do these errors mean and how to fix?

2002-03-17 Thread Jenda Krynicky
From: [EMAIL PROTECTED] > I am getting the following errors when I execute the code below. > Any ideas why and how to fix them? > ( I saw something similar posted in the lists before and it > had something to do with using "my" and "local" variables and/or > passing parameters by

Re: The SMTP server was not found, error from mail::sender

2002-02-10 Thread Jenda Krynicky
From: "Forrest Payne" <[EMAIL PROTECTED]> To: "Perl PDK \(E-mail\)" <[EMAIL PROTECTED]>, "Perl User \(E-mail\)" <[EMAIL PROTECTED]>, "Perl Win32 Admin \(E-mail\)" <[EMAIL PROTECTED]> Do not crosspost please! > When I use mail::sender in a .pl

Re: Installing packages

2001-06-07 Thread Jenda Krynicky
> How can i install for ex. DBI and DBD packages in a computer with no > Internet Connection? You download the modules from http://www.activestate.com/PPMPackages/zips/6xx-builds-only/ copy them somehow to the computer in question, unpack the ZIPs to some temporary directory, set ppm repositor

Re: Modules and PLX

2001-06-06 Thread Jenda Krynicky
> Mark Bergeron asks: > Hope everyone having a great (sometime of day), Could be better :-) > Question: If you should be running your scripts with the > PerlIS.dll as PLX but you load (as you must) in most cases your .pm > modules, do they also excecute under the .dll or do they revert > back to

Re: Mapping a Home Dir during logon

2001-05-25 Thread Jenda Krynicky
> I would like to create a logon script that maps a user's home directory > (using, let's say, the "Z" drive letter) during logon. What module would I > use? Btw, I'm using Windows NT 4.0 TSE. Thanks. > > Dean Theophilou > Genisar If you know where to map to you may use use Win

Re: Can't get Mail::Sender to work in compiled Perl program

2001-05-09 Thread Jenda Krynicky
> I have a Perl program install.pl. When it hits an error it sends an e-mail > to a selected address. This works perfectly when I run the install.pl. > > I take the install.pl and using the developers kit and create an exe by > running the following: > perlapp install.pl -f > > Now when I run

Re: Problems sending a email with perl!!

2001-03-18 Thread Jenda Krynicky
> Hi all. > > i'm trying to send a confirmation email after people submit a form in my > site.well i 'm using a Mail::Sender module that i saw somewhere on the > Internet.The problem is:I can received a message the tells me that the email > was sent with success but i'm not receiving the mes

Re: Win32::FileOp possible problem on Windows ME?

2001-03-18 Thread Jenda Krynicky
> I've had a report from a user that Win32::FileOp is causing an error on > Windows ME which reports: "shell32.dll > error". Is this a known problem? Does this cause the same error? use Win32::FileOp; print BrowseForFolder 'Test'; Jenda P.S.: Where do I get the Tk::Win32::File