Here is my functional solution:
#!/usr/bin/perl -w
use strict;
use POSIX;
use POSIX qw(mbstowcs wcstombs);
my $MB_string = "My String";
my $str_len = length( $MB_string) ;
my $WC_string = " " x $str_len; #allocate 2x the space
print "\$MB_string = [$MB_string]\n\n
Hello,
Thank you for the response. I read the same documents, and I
inferred that they work, regardless of their use.
I am attempting to use the WIN32::API::Prototype module to call
MultiByteToWideChar() and WideCharToMultiByte(). And I'm having some
success. I'll post my soluti
. Do I need to
allocate space for $WC_String?
-
E:\>perl -v
This is perl, v5.6.1 built for MSWin32-x86-multi-thread
(with 1 registered patch, see perl -V for more detail)
-
Thanks
Erik Felton
#!/usr/bin/perl -w
use strict;
use POSIX;
use POSIX qw(mbstowcs
inside of it.
Good Luck
Erik Felton
-Original Message-
From: Paul Sobey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 08, 2004 4:37 AM
To: Marie-eve URVOY
Cc: Perl-Win32
Subject: RE: run a process as System account
Not that I'm aware of. You could easily schedule the job to r
sort keys %food_color) {
print "$food is $food_color{$food}.\n";
}
This sorts the keys by their associated values:
foreach $food (sort { $food_color{$a} cmp $food_color{$b} }
keys %food_color)
{
print "$food is $food_color{$food}.\n";
}
This sorts by len
" c:\\helloworld.txt", #NOTE, leading space
0,
NORMAL_PRIORITY_CLASS,
".")|| die ErrorReport();
$ProcessObj->Wait(INFINITE);
-
Can someone explain to