RE: Accessing DLL functions

2004-12-23 Thread Sturdevant-Contractor, Robert W
ms to simplify things a bit. The latter module should work and I'll experiment a bit after the holiday. BobS -Original Message- From: Jonathan Paton [mailto:[EMAIL PROTECTED] Sent: Thursday, December 23, 2004 1:58 PM To: Sturdevant-Contractor, Robert W; beginners@perl.org Subject: Re:

Accessing DLL functions

2004-12-23 Thread Sturdevant-Contractor, Robert W
Hi,   Am I correct in assuming that I can access functions in a .dll file using the Win32::API module. I have a proprietary database database and C .dll with function prototypes. I would like to write a perl pgm using the ilibrary functions to access the DB. Am I headed in the right directio

Help with unicode search and replace

2004-07-15 Thread Sturdevant-Contractor, Robert W
Hi, There must be an easy way to do a simple unicode string search and replace! I need to search a utf-16 string and replace with a much longer utf-8 string converted to utf-16 much like this: while() { $_ =~ s/foo/bar/; } where FILE and foo are utf-16 and bar is pulled first from an asci

Unicode Patern matching

2003-09-26 Thread Sturdevant-Contractor, Robert W
Hi, For three days I have been totally _unsuccessful_ at matching a two word pattern ("Windows 2000") in a unicode doc in a reasonable fashion. I am using the ActiveState build 635 on W2k. Can someone give me an example? This works for me but is rather ugly; there's gotta be a better way. $_ =~ m

RE: Special Name for @ Element

2002-11-21 Thread Sturdevant-Contractor, Robert W
Sturdevant-Contractor, Robert W Cc: [EMAIL PROTECTED] Subject: Re: Special Name for @ Element On Nov 19, Sturdevant-Contractor, Robert W said: >Is there a special name (like $_) to identify the array element being >addressed as in the following code: > >foreach $element (@array) { do som

Special Name for @ Element

2002-11-19 Thread Sturdevant-Contractor, Robert W
Hi all, Is there a special name (like $_) to identify the array element being addressed as in the following code: foreach $element (@array) { do something }; In other words, the above iterates thru the array finding elements $array[0..n]. Can I tell the specific element being enumerated using a