Peter,
OLE needs Variant values. Perl and the OLE modules will convert most of
these on he fly for you, but sometimes I find I have a need to convert
booleans explicitly.
my $false = Win32::OLE::Variant-new(VT_VARIANT, 0);
my $true = Win32::OLE::Variant-new(VT_VARIANT, 1);
Mark
On 9/12/2010
From what I see here, $rows is a hash reference, therefore:
use strict;
use warnings;
my $mySQL = SQLfunctions-new;
$mySQL-createSQLConnection(localhost\\Company, Import);
my @results = $mySQL-runQuery(Select A,B from tablename;);
foreach my $row ( @results ) {
foreach my $column ( keys
first.
Cheers,
Mark
---
Mark Leighton
CLIC LAN Supervisor, Information Commons, University of Toronto
E-mail: mark{DOT}leighton{AT}utoronto.ca
Original Message
Subject: Advice requested, porting unix perl app to windows
From: Dennis Daupert ddaup...@csc.com
To: perl-win32
before - usually just use the
OLE methods directly and they haven't given problems.
You may want to confirm passwords, etc. using the wmic utility before worrying
about the underlying Perl code.
eg.
wmic /NODE:machine /USER:machine\admin OS LIST BRIEF
Mark
---
Mark Leighton
CLIC LAN Supervisor
Fax: 724-772-7889
email: [EMAIL PROTECTED]
---
Mark Leighton
CLIC Lan Supervisor, Information Commons, University of Toronto
Phone: (416) 946-7094 Fax: (416) 978-0440
E-mail: mark{DOT}leighton{AT}utoronto.ca
___
Perl-Win32-Users mailing
eg. CODEBASE HREF="x86/Win32-AdminMisc.tar.gz" /
Therefore, there should be an x86 directory in the same directory as the
Win32-AdminMisc.ppd file.
Good luck,
Mark
-+--
Mark Leighton|