Re: Perl Abend on exit with Win32::CryptData

2006-10-16 Thread Sisyphus
- Original Message - From: "Webb, Andy" <[EMAIL PROTECTED]> To: Sent: Monday, October 16, 2006 6:27 PM Subject: RE: Perl Abend on exit with Win32::CryptData Bernard / Sisyphus, I get the same failure on exit of the perl program. The encrypt/decrypt works and prints the correct outp

RE: how to initialize an array

2006-10-16 Thread Su, Yu (Eugene)
How to initialize an array? I want to get a median by using Statistics::Descriptive. I enter (12, 13, 14), (15, 16, 17), (16, 17, 18) I expect 13,16,17. Instead, I get 13.00, 14.50, 16.00. I thought my @temp_array=(); in the median sub (see code snippet below) will get me new array. But I am wro

RE: what?!?

2006-10-16 Thread Webb, Andy
Well, it's a pretty nifty part of the language if you're expecting it. Some languages provide for bounds checking in the syntax and some don't. Seems like bounds checking ought to be part of the healthy code though, especially if you're relying on externally sourced data/computation. You have to

RE: what?!?

2006-10-16 Thread Barry Brevik
>Now, there's a great feature. If you index before the beginning of an >array, it neither gives you a runtime error nor returns undef. What a Yes, it is a great feature. From the book "Learning Perl", it states "a negative subscript on an array counts back from the end". If you are expecting the

what?!?

2006-10-16 Thread John Deighan
my @data = (1, 2, 3); my $index = -1; my $val = $data[$index]; print("val = '$val'\n"); Output: val = '3' Now, there's a great feature. If you index before the beginning of an array, it neither gives you a runtime error nor returns undef. What a great way to end up with a program that produces

RE: Problem returning empty Safearray from OLE Component

2006-10-16 Thread Joe Discenza
Kevin Godden wrote, on Monday, October 16, 2006 10:21 AM :   saBound.cElements = elementCount; :   SAFEARRAY* pA = SafeArrayCreate(VT_I4, 1, &saBound);   While the loop is protected by checking elementCount, the SafeArrayCreate call is not, so it is almost surely the source of the error.

Problem returning empty Safearray from OLE Component

2006-10-16 Thread Kevin Godden
Hi all,   I hope that somebody can help me with a problem that I am having while returning a 1D Safearray to a Perl client from an OLE component, everything is OK when the array has some elements, but if the array is empty I get the following error:   Win32::OLE(0.1704) error 0x8002000b: "Inval

RE: Net-SFTP and ppm

2006-10-16 Thread h-taguchi
Thanks for an importtant information! Installation process of Net::SFTP seems to be so hard. I installed WinSCP and successfully executed from Perl with: my @rc = `winscp3.com /console /script=example.txt`; > SFTP on Win32 you could try accessing the WS_FTP API by the WsftpApi > interface. Jan w

RE: Perl Abend on exit with Win32::CryptData

2006-10-16 Thread Webb, Andy
Bernard / Sisyphus,   I get the same failure on exit of the perl program.  The encrypt/decrypt works and prints the correct output data.  It’s only on program exit that the error occurs: Faulting application perl.exe, version 5.8.8.817, faulting module ntdll.dll, version 5.1.2600.2180, f