Conditionally use

2010-06-14 Thread kenTk
How can I conditionally use a module? I have a script that I wish to run on Linux and Windows (activestate 5.8.8). Under windows it will produce an xl spreadsheet and a comma-separated text file. I haven't found an xl module for Linux so I will simple omit that function and produce only the CSV. Th

Conserving memory

2008-10-21 Thread kenTk
If I populate @array Then @array=(); Is the memory that was used for that array now freed? Similarly If I populate the anonymous array @{$arrayREFS[$index]} Then @{$arrayREFS[$index]}=(); Is the memory that was used for that anonymous array now freed? Thanks in advance -- To unsubscribe, e-ma

Re: Conserving memory

2008-10-23 Thread kenTk
On Oct 21, 10:14 pm, [EMAIL PROTECTED] (Dr.Ruud) wrote: > "Mr. Shawn H. Corey" schreef: > > > > > kenTk: > >> If I populate @array > >> Then > >> @array=(); > >> Is the memory that was used for that array now freed? > >

Re: Reading from multiple sockets.

2008-11-02 Thread kenTk
On Oct 30, 8:33 am, [EMAIL PROTECTED] (Kammen van) wrote: > >>> From: Peter Scott [mailto:[EMAIL PROTECTED] > >>> Subject: Re: Reading from multiple sockets. > > >> On Tue, 21 Oct 2008 12:53:53 +0200, Kammen van, Marco, Springer SBM > NL > >> wrote: > >> I'm pretty new to working with sockets in pe

Win32::SqlServer

2009-02-15 Thread kenTk
Win32::SqlServer I can't get the connection timeout to be any shorter than 45 seconds. for example $sqlsrv->setloginproperty('ConnectTimeout',5); doesn't seem to change anything. Does anyone have any experience with this? -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional

Re: perl multithreading

2007-05-28 Thread kenTk
On May 26, 10:06 am, [EMAIL PROTECTED] (Spx2) wrote: > hi,im new to multithreading altough ive read some papers on it...and > tried to made some programs > in perl using threads. > what would you recommend using with perl multithreading on windows. > what would you recommend reading on a broader sp

IO::Socket::INET client hangs on no server on windoze

2007-05-28 Thread kenTk
If there is no server or no connection this hangs for about 20 seconds and then crashes with the following error message. The Timeout seems to make no difference and the 'warn' does not occur. If works file with a good connection to a server. Using 5.8.8 active perl. Anyone got any suggestions for

Re: IO::Socket::INET client hangs on no server on windoze

2007-05-29 Thread kenTk
On May 29, 2:40 pm, [EMAIL PROTECTED] (Zentara) wrote: > On 28 May 2007 08:28:35 -0700, [EMAIL PROTECTED] (kenTk) wrote: > > > > >If there is no server or no connection this hangs for about 20 seconds > >and then crashes with the following error message. > >The Timeo

Re: IO::Socket::INET client hangs on no server on windoze

2007-05-31 Thread kenTk
On May 29, 7:55 pm, [EMAIL PROTECTED] (kenTk) wrote: > On May 29, 2:40 pm, [EMAIL PROTECTED] (Zentara) wrote: > > > On 28 May 2007 08:28:35 -0700, [EMAIL PROTECTED] (kenTk) wrote: > > > >If there is no server or no connection this hangs for about 20 seconds > > >an

XP UDP broadcast

2007-11-06 Thread kenTk
I am posting this problem and the solution to spread the news a little about a nasty bug in XP. PROBLEM I have a Perl (activestate) 5.8.8 script that uses IO::Socket::INET; and opens a broadcast UDP socket. The packets are received successfully by another host running a similar script as long as I