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 sub-ro
> -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 acce
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
Sunnyb
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 --
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 an
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 () {
chomp ($record);
push @records, $record;
}
# benchmark
tim
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-
From
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
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("");
#
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
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-
> F
> -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 w
$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 machin
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 N
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
s
[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 MIM
> -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
[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 MIM
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 pr
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
20 matches
Mail list logo