drag'n'drop onto desktop icon ???

2005-05-23 Thread Michael D Schleif
I have a perl program that successfully processes a set of text files. So far, the UI is to pass the incoming text file to the program on the command line. Users want an icon on their desktops, and they want to drag the text file onto this icon, in order to process the file. I have not been able

RE: win32::Lanman Error

2005-05-23 Thread shailja_agrawal
Hello Rob, I have modified the script like below if(!Win32::Lanman::NetUserEnum($PDC, FILTER_NORMAL_ACCOUNT, [EMAIL PROTECTED])) { print Sorry, something went wrong; error: ; # get the error code print Win32::Lanman::GetLastError(); print \n; print

Re: drag'n'drop onto desktop icon ???

2005-05-23 Thread $Bill Luebkert
Michael D Schleif wrote: I have a perl program that successfully processes a set of text files. So far, the UI is to pass the incoming text file to the program on the command line. Users want an icon on their desktops, and they want to drag the text file onto this icon, in order to process

Re: need help with utf8

2005-05-23 Thread Ing. Branislav Gerzo (mail-lists)
[EMAIL PROTECTED] [a], on Monday, May 23, 2005 at 05:12 (UT) wrote: a typical filename in mail message looks like a my $name==?UTF-8?B?0L8xX9C80LXRgdGP0YfQvdCw0Y8ucnRm?=; a i need to convert this to utf8 and then to cp1251 a How precisely to do this ? I think you have to decode this via MIME,

RE: drag'n'drop onto desktop icon ???

2005-05-23 Thread Jack D.
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Michael D Schleif Sent: May 22, 2005 11:29 PM To: perl-win32-users mailing list Subject: drag'n'drop onto desktop icon ??? I have a perl program that successfully processes a set of text files.

Re:Re: need help with utf8

2005-05-23 Thread assistent
[EMAIL PROTECTED] [a], on Monday, May 23, 2005 at 05:12 (UT) wrote: a typical filename in mail message looks like a my $name==?UTF-8?B?0L8xX9C80LXRgdGP0YfQvdCw0Y8ucnRm?=; a i need to convert this to utf8 and then to cp1251 a How precisely to do this ? I think you have to decode this via MIME,

error in DynaLoader.pm loading DLL on (some) machines

2005-05-23 Thread Bennett Haselton
I have a Perl script installed on my XP Pro Sp2 machine with ActivePerl 5.8.3 build 809, that uses Net::SSLeay version 1.25 to download https URLs, and works fine. I also have the Web server OpenSA 2.0.2 which runs some CGI scripts that use Net::SSLeay to fetch content from third-party https

Re: error in DynaLoader.pm loading DLL on (some) machines

2005-05-23 Thread Randy Kobes
On Mon, 23 May 2005, Bennett Haselton wrote: I have a Perl script installed on my XP Pro Sp2 machine with ActivePerl 5.8.3 build 809, that uses Net::SSLeay version 1.25 to download https URLs, and works fine. I also have the Web server OpenSA 2.0.2 which runs some CGI scripts that use

How secure is Perl FTP function

2005-05-23 Thread Ted Yu
$ftp = Net::FTP-new("$ftp_server_name", Debug = 0) or die(""); #server_error, ,$ftp-login("$ftp_user","$ftp_pass"); $ftp-binary; $ftp-put("$upload_filename"); $ftp-quit; If I compile the code into an .exe file with ActiveState Perl, can an average hacker look at the machine code to get the

Re: error in DynaLoader.pm loading DLL on (some) m

2005-05-23 Thread Bennett Haselton
-Original Message- From: Randy Kobes [mailto:[EMAIL PROTECTED] Sent: Monday, May 23, 2005 05:31 PM To: 'Bennett Haselton' Cc: perl-win32-users@listserv.ActiveState.com Subject: Re: error in DynaLoader.pm loading DLL on (some) machines On Mon, 23 May 2005, Bennett Haselton wrote:

Re: How secure is Perl FTP function

2005-05-23 Thread Bennett Haselton
I would think so -- or, even easier, they can run your program under a network sniffer and see what data is sent out by the program, since FTP sends usernames and passwords unencrypted. What are you trying to do? There might be a more secure solution. -Bennett -Original Message-

Re: How secure is Perl FTP function

2005-05-23 Thread Octavian Rasnita
Yes of course the hacker can do that. If you don't want that, try using a secure FTP connection crypted with SSL. And then use the module Net::SFTP. Teddy - Original Message - From: Ted Yu To: perl-win32-users@listserv.ActiveState.com Sent: Monday, May 23, 2005

Re: How secure is Perl FTP function

2005-05-23 Thread Steve Keith
Yes, you should consider anything that you put into the EXE file as not secure. Also, I believe any Net::FTP session sends the info in clear text. If you need to be secure, then you should use SSH instead of Net::FTP Steve $ftp = Net::FTP-new($ftp_server_name, Debug = 0) or die();

CSV: help optimize ???

2005-05-23 Thread Michael D Schleif
I have an ongoing stream of CSV files of varying lengths (some quite long), and of various CSV formats. I am using Text::CSV_XS to parse the records; which works except in that case where the incoming file surrounds each RECORD with double-quotes. I find this to be aberrant behaviour. How can I

RE: How secure is Perl FTP function

2005-05-23 Thread Bharucha, Nikhil
This is of more concern than somebody getting the UID and Password from your exe on your server. I see the code below specifies binary, so the data is encrypted but the UID and Password you connect on is sent in text and anyone sniffing your connection can get it. -Original Message-

RE: help optimize ???

2005-05-23 Thread Peter Guzis
Below is one possible optimization: the elimination of regular expressions. ## begin code ## use strict; use warnings; use Benchmark; # populate record list my @records; foreach my $record (DATA) { chomp ($record); push @records, $record; } # benchmark

Win32::OLE Can you call ShowOpen Method

2005-05-23 Thread mark
Title: Win32::OLE Can you call ShowOpen Method Hello All, I would like to use OLE to access the common dialog control. I can get access to a number of methods however the ShowOpen does not work. Is it possible to use show open to get a File Open Dialog. I can do this using Win32::GUI and

Re: help optimize ???

2005-05-23 Thread $Bill Luebkert
Peter Guzis wrote: Below is one possible optimization: the elimination of regular expressions. My version (it handles quoted fields on both ends, but there could be some better way to strip the s on the substr/index) : Results: Rate do_index do_regex do_index 33473/s --

Re: Microsoft Word search and replace issue

2005-05-23 Thread Chris Cox
Thanks for your responses Greg and Jan. I've followed your advice and it's working beautifully. Thanks very much! Chris -- Chris Cox B.IT.(Information Systems) Senior Software Engineer Creatop Interactive Media Level 1, 240 McCullough Street

Re: CSV: help optimize ???

2005-05-23 Thread Chris Wagner
I would focus on finding out why some CSV files are being made wrong. An entire line shouldn't be enclosed in its own quotes. Fixing the problem at that end would eliminate the need to do clean up after the fact. At 03:42 PM 5/23/05 -0500, Michael D Schleif wrote: How can I optimize this

RE: Win32::OLE Can you call ShowOpen Method

2005-05-23 Thread Jack D.
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: May 23, 2005 7:01 PM To: perl-win32-users@listserv.ActiveState.com Subject: Win32::OLE Can you call ShowOpen Method Hello All, I would like to use OLE to access the