Re: [Perl-unix-users] Timing Out a Hanging function...how?

2005-07-28 Thread Arijit Das
No I don't have any control of the subroutine because thatz inside a module called Quota -Arijit world.com> wrote: > Hi Arijit, > > As far as I'm aware SIGnals are the only generic > mechanism you can use to jump out of code from any > point of execution... > > So without knowing the contents

Re: Variable reference

2005-07-28 Thread Greg
Jim Schueler wrote: There is an obsolete perl feature called indirect references. If you are thinking of a specific technology, that might be it. Personally, I would simply change the last line of your code to: print eval $value ; Jim Schueler Motor City Interactive On Wed, 27 Jul 20

Re: Timing Out a Hanging function...how?

2005-07-28 Thread David Nicol
On 7/28/05, Arijit Das <[EMAIL PROTECTED]> wrote: > How can I time out a subroutine/function? > > print "My code is executing...the next sub inokation > takes a long time simetimes. SO, I want to ensure that > at max it should take 5 secsonds."; > my $device_name = Quota::getqcarg($path); > > >

FW: newbie problem with Visual Perl Tutorial - cross post

2005-07-28 Thread Chris Newman
Title: FW: newbie problem with Visual Perl Tutorial - cross post Hi, I posted this on the visualperl list, then noticed it wasn't very active. I decided to post my question in a more active forum. Can anyone help? Thanks, cn _ From: Chris Newman

How to debug a 'Memory allocation failure'

2005-07-28 Thread Craig Cardimon
I'm inserting processed text into SQL Server. I thought my problem was grounded in the physical size of the file being inserted. The file that failed is 8,949 KB, but another file inserted earlier is larger 8,954 KB. One error message I got: [911] [1074] [0] "[Microsoft][ODBC SQL Server Drive

Timing Out a Hanging function...how?

2005-07-28 Thread Arijit Das
How can I time out a subroutine/function? print "My code is executing...the next sub inokation takes a long time simetimes. SO, I want to ensure that at max it should take 5 secsonds."; my $device_name = Quota::getqcarg($path); I want to timeout Quota::getqcarg($path) but I don't want to use the