Re: File::Copy and eval]

2006-01-24 Thread Sisyphus
- Original Message - From: "Michael Jung" . . > > example code + > > use strict; > use warnings; > use File::Copy; > > eval { > copy("/somepath/foo.dbf", "/someotherpath/work/"); > }; > if ($@) { > print "Error" . "\n"; > } > print "End of program" . "\n";

[Fwd: File::Copy and eval]

2006-01-24 Thread Michael Jung
This is perl, v5.8.4 built for MSWin32-x86-multi-thread (with 3 registered patches, see perl -V for more detail) Copyright 1987-2004, Larry Wall Binary build 810 provided by ActiveState Corp. http://www.ActiveState.com ActiveState is a division of Sophos. Built Jun 1 2004 11:52:21 In this ex

Need help on printing to Windows Default Printer, please...

2006-01-24 Thread Jim Agnew - Department of Neurosurgery, VCU Medical Center
Dear All, I've written program to print text to lpt1 reading a text file, defining the font via hp's pcl, and putting the text out, to let a printer have 132 collumn printouts... it will not run on a co-workers's computer.. I've tried the Printer.pm, and one other thing from Active state to

RE: SQL Server "Invalid Cursor State"

2006-01-24 Thread John Deighan
At 10:46 AM 1/24/2006, Ray Albert wrote: Hello, I just successfully ran your code against my database. Is it possible you lost the database connection? I don't think so. It's very repeatable. However, I think this code used to work, so I got to thinking about the versions of Perl, SQL Server,

Re: SQL Server "Invalid Cursor State"

2006-01-24 Thread itrabado
Does your sp manage cursors? Ignacio Trabado Castillo Dpto. Informática Desarrollo tlf: 93 500 (9255)___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Tk event order

2006-01-24 Thread Артем Аветисян
Is there a way to manipulate the evaluation order between Tk::Text tag event and Tk::Text widget event? So far tag event seems to be called prior to widget's (whatever taglevel it is). ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveSta

RE: SQL Server "Invalid Cursor State"

2006-01-24 Thread Ray Albert
Hello, I just successfully ran your code against my database. Is it possible you lost the database connection? Ray -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of John Deighan Sent: Tuesday, January 24, 2006 10:00 AM To: perl-win32-users@listserv.ActiveSt

SQL Server "Invalid Cursor State"

2006-01-24 Thread John Deighan
Using the DBI with Microsoft SQL Server, I'm trying to get data back from a stored procedure call and getting an "Invalid Cursor State" error at the execute() call below (it never gets to the fetchrow_array call). Has anyone else run into this? Can anyone help? my $sth = $dbh->prepare("exec sp

Win32 API, Directories wwith Unicode / Wide Filenames, FindFirstFileW, FindNextFileW

2006-01-24 Thread D D Allen
I have a Win32 Perl coding challenge to search a directory (WinXP, NTFS) with a file specification pattern where the directory may contain files with unicode / wide filenames in addition to ANSI filenames.   Through trial, error, and searches against Perl mailing list archives, it seems apparent t