Re: warning messages on module Win32::Process::Memory

2005-08-31 Thread $Bill Luebkert
Allegakoen, Justin Devanandan wrote: > --8< > >># no warnings; >>next if $This =~ /\.pl$/; > > > The above should be 'return' rather than 'next'. > --8< > Why didn't I think of that? > > --8< > Where is your description of the err

RE: warning messages on module Win32::Process::Memory

2005-08-31 Thread Allegakoen, Justin Devanandan
--8< > # no warnings; > next if $This =~ /\.pl$/; The above should be 'return' rather than 'next'. --8< Why didn't I think of that? --8< Where is your description of the error ? --8< I supplied the smallest failing s

Re: File::Find limit to current directory

2005-08-31 Thread $Bill Luebkert
Darrell Snedecor wrote: > How can I keep file::find from descending into subfolders of > $DataFolders_Location? I can't get prune to work. > > sub DelMiscFiles { > if(m/ >EDWin\d{3}.ver$ > |safe.{16,25}$ > |.

RE: :Socket::INET question

2005-08-31 Thread John Serink
Make sure you set the reuse to 1. You could also try $return_val=$sock->shutdown(AF_INET); rather than close($sock); Cheers, John > -Original Message- > From: Peter Eisengrein [mailto:[EMAIL PROTECTED] > Sent: Thursday, September 01, 2005 10:35 AM > To: John Serink; Peter Eisengrein; 'Pe

RE: Problem With Win32::OLE and InternetExplorer.Application

2005-08-31 Thread Steven Manross
Sorry for the late reply.. I kind of forgot about Activestate for a month.. :( I have absolutely no problems with IE.Application scripts... I'd be available for personal requests for help if necessary. I create a lot of IE scripts. I'd probably suggest that you take your Navigate method down t

Re: warning messages on module Win32::Process::Memory

2005-08-31 Thread $Bill Luebkert
Allegakoen, Justin Devanandan wrote: > -8<-- > It seems to me that when you get a warning, you're doing something wrong > or it wasn't coded to take all possibilities into consideration - so I > never turn off warnings or strict. I already found two legit bugs in > that > module, so I'

Re: IO::Socket::INET question

2005-08-31 Thread $Bill Luebkert
Peter Eisengrein wrote: > I have an app using IO::Socket::INET that accepts (and makes) > connections. If the connection drops for whatever reason it takes a > couple minutes for that tcp port to be flushed and accept a new connection. > > My question: if I add the ReusePort option to the new() m

RE: :Socket::INET question

2005-08-31 Thread Peter Eisengrein
> You need to use the IO:Select module which makes the ports non- > blocking. > When you check the port for reading, it will indicate there is > something > to read. When you read it using sysread if it returns: > 0 = the socket has disconnected. > undef = there was an error on the handle, $! has

RE: :Socket::INET question

2005-08-31 Thread John Serink
Title: Message You need to use the IO:Select module which makes the ports non-blocking. When you check the port for reading, it will indicate there is something to read. When you read it using sysread if it returns: 0 = the socket has disconnected. undef = there was an error on the handle, $!

RE: warning messages on module Win32::Process::Memory

2005-08-31 Thread Allegakoen, Justin Devanandan
-8<-- It seems to me that when you get a warning, you're doing something wrong or it wasn't coded to take all possibilities into consideration - so I never turn off warnings or strict. I already found two legit bugs in that module, so I'm guessing there are more to find. -8<

RE: Current working directory for Perl CGIs under IIS 6

2005-08-31 Thread Jan Dubois
On Wed, 31 Aug 2005, Brad Choate wrote: > I'm trying to forcibly set the current working directory for a CGI > *before* the CGI itself runs. I've explored some options I thought > would work, but none are, in fact, working. [...] > #1. Change the perl.exe mapping to process a module that d

RE: File::Find limit to current directory

2005-08-31 Thread Thomas, Mark - BLS CTR
Darrell Snedecor wrote: > How can I keep file::find from descending into subfolders of > $DataFolders_Location? I can't get prune to work. ... > find(\&DelMiscFiles, $DataFolders_Location ); Why not use readdir()? ___ Perl-Win32-Users mailing l

Current working directory for Perl CGIs under IIS 6

2005-08-31 Thread Brad Choate
Hi, I'm trying to forcibly set the current working directory for a CGI *before* the CGI itself runs. I've explored some options I thought would work, but none are, in fact, working. What I really need here is for the .cgi file to be able to refer to a local "lib" directory in a relative w

IO::Socket::INET question

2005-08-31 Thread Peter Eisengrein
I have an app using IO::Socket::INET that accepts (and makes) connections. If the connection drops for whatever reason it takes a couple minutes for that tcp port to be flushed and accept a new connection.   My question: if I add the ReusePort option to the new() method, will this flush the

File::Find limit to current directory

2005-08-31 Thread Darrell Snedecor
How can I keep file::find from descending into subfolders of $DataFolders_Location? I can't get prune to work. sub DelMiscFiles { if(m/ EDWin\d{3}.ver$ |safe.{16,25}$ |.+\.stru$

Win32::ODBC -- Using two databases simultaneously

2005-08-31 Thread Craig Cardimon
I'm connecting to two databases at the same time, test and production. I have two sets of DSN connections and connection checks: my $DSN = "Real"; my $DSN2 = "Test"; my $connection = new Win32::ODBC($DSN); my $connection2 = new Win32::ODBC($DSN2); ## Make su

Re: warning messages on module Win32::Process::Memory

2005-08-31 Thread Alejandro Santillan Iturres
>It seems to me that when you get a warning, you're doing something wrong >or it wasn't coded to take all possibilities into consideration - so I >never turn off warnings or strict. I already found two legit bugs in that >module, so I'm guessing there are more to find. I agree about the warnings.

Re: warning messages on module Win32::Process::Memory

2005-08-31 Thread $Bill Luebkert
Alejandro Santillan Iturres wrote: >>It seems to me that when you get a warning, you're doing something wrong >>or it wasn't coded to take all possibilities into consideration - so I >>never turn off warnings or strict. I already found two legit bugs in that >>module, so I'm guessing there are mor

Re: warning messages on module Win32::Process::Memory

2005-08-31 Thread $Bill Luebkert
Sisyphus wrote: > Generally, imho, it is better to remove the "bugs" (used equally, if not > more, loosely). > > Maybe that's what the op wants to do or maybe he just wants to suppress > those particular warnings. It's not entirely clear to me. If he wants to > remove the "bugs" he'll take n

Re: warning messages on module Win32::Process::Memory

2005-08-31 Thread Sisyphus
- Original Message - From: "$Bill Luebkert" <[EMAIL PROTECTED]> To: Sent: Wednesday, August 31, 2005 4:21 PM Subject: Re: warning messages on module Win32::Process::Memory > Sisyphus wrote: > > > Those warnings are all generated by Memory.pm - you could specify 'no > > warnings' near

Re: warning messages on module Win32::Process::Memory

2005-08-31 Thread $Bill Luebkert
Sisyphus wrote: > Those warnings are all generated by Memory.pm - you could specify 'no > warnings' near the start of Memory.pm (or just comment out 'use warnings;' > in Memory.pm) and all warnings produced by Memory.pm will then be not seen. > (Warnings produced by your script will be unaffecte