Oh great! It works this way.
Teddy
- Original Message -
From: "Jan Dubois" <[EMAIL PROTECTED]>
To: "'Sisyphus'" <[EMAIL PROTECTED]>;
; "'Jon Bjornstad'"
<[EMAIL PROTECTED]>
Sent: Tuesday, June 14, 2005 5:19 AM
Subject: RE: Win32:OLE - Speech.VoiceText
> On Mon, 13 Jun 2005, Sisyphus wr
I have also tried the following script under Windows 2000 but it doesn't
work and it doesn't give any error.
The SAPI 4 is installed by default in Windows 2000 and it works fine with
Narrator and with my screen reader so this is not a problem.
Under Windows XP SAPI 5 is installed by default, and i
I recently wanted to use the following code for a select statement:
use DBI;my $dbh = DBI->connect( "dbi:ODBC:{database}","{username}", "{password}") or &error('CONNECT_SQL');
my $results = $dbh->selectall_arrayref('select count(*) from tblTicketFileProcessLog');
print $results;use DBI;my $dbh
Octavian - The script below still has the error that I originally
introduced.
It should be $voice->Speak("hello world", 0);
Thanks to Jan for the research!
So now I can code like this:
use Win32;
my $speech_object = (Win32::GetOSName() =~ /XP/)?
"SAPI.SpVoice": "Speech.VoiceText";
- Original Message -
From: "Ted Yu" <[EMAIL PROTECTED]>
[snip]
> I keep getting an error that reads:
>
> Can't locate DBI.pm in @INC...
>
Can't really help with main part of your request, but I can tell you that
error means that the DBI module is not installed on your machine - or if i
Did you install the DBI module?
I have found that if you need to run your
program for an extended period of time and need to reconnect to your DB,
Win32::ODBC has a memory leak that can cause you problems.
Howard A. Bullock
Computer Security
Tyco Electronics
717-810-3584
What would be the code if i used Win32:ODBC? The result of the
select statement is a single value and not an array. Appreciate your
help, as I am new to using remote connections to a SQL database with
Perl.
I have used
it in a while loop and performed thousa
Hi All,
I read some data from an xml file into a hash.
Now the hash can be
$VAR1 = {
'XYZ' => [
{
'NAME' => 'N1'
},
{
'NAME' => 'N2'
}
],
};
Apurva Shukla wrote, on Tue 6/14/2005 09:28
: XYZ can be an 'Array of hashes' or a 'Single Hash':: Now if
I want to traverse all that is contained in XYZ I first read the array
length
: and then traverse it one by one.:: How can I get a length of
an array and in case its not an array I can k
I tried to print out the output of the select statement. No error, but no printout either. Not sure if there is an error in my code:
use Win32::ODBC;
my $pw = "password1";my $user = "ted";my $dsn = "db1";$db = new Win32::ODBC("DSN=$dsn;UID=$user;PWD=$pw") || die "ERROR: Failed to open database
My bad. Either declare @data outside the if block or else process the
array within the block. By having the 'my' inside it is localized and therefore
you get no response.
-Original Message-From: Ted Yu
[mailto:[EMAIL PROTECTED]Sent: Tuesday, June 14, 2005 1:54
PMTo: perl-win32
11 matches
Mail list logo