Re: Even after runtime eval with no __DIE__, can't avoid dying inside perldoc

2005-12-18 Thread Veli-Pekka Tätilä
Suresh Govindachar wrote: I have been trying to not die when calling perldoc, but the code below keeps dying inside perldoc. The code below does show that eval is happening at runtime, and that the syntax used for shutting off __DIE__ does work when perldoc is not involved. Hi, First

Re: Even after runtime eval with no __DIE__, can't avoid dying inside perldoc

2005-12-18 Thread $Bill Luebkert
Suresh Govindachar wrote: =head Hello, I have been trying to not die when calling perldoc, but the code below keeps dying inside perldoc. The code below does show that eval is happening at runtime, and that the syntax used for shutting off __DIE__ does work when

Re: [aswin32] Re: How to disable a control without changing appearance

2005-12-18 Thread Robert May
Lynn. Rickards wrote: Chris Rogers wrote: I'm looking for a way to disable a control (widget) without changing it's appearance. I would like to be able to do this for any type of control. Any help would be greatly appreciated. Thanks, Chris Tk? Win32? Either way, what comes to mind

Re: Even after runtime eval with no __DIE__, can't avoid dying inside perldoc

2005-12-18 Thread $Bill Luebkert
$Bill Luebkert wrote: (my $prog = $0) =~ s/^.*[\\\/]//; my $usage = EOD; Usage: $prog [-d] [-a] [-f] [-q] [-s] [args] -d debug (-d=2 for perldoc debug) -a if present perform the following logic, else call perldoc with arglist and return result of

ole, excel, read the error codes

2005-12-18 Thread Hon Shi
Using Win32::OLE with Excel. This has something to do with sheet protection. It works after a manual unprotect (the program version works sometimes, sometimes not) $wb-Worksheets(Sheet1)-UnProtect(admin); But the real question is, how do I chase this error message down? It doesn't mean a

Re: [aswin32] Re: How to disable a control without changing appearance

2005-12-18 Thread Chris Rogers
Sorry, about the lack of information in my original post. I just assumed, this being a perl-win32 group that Win32::GUI wasa given. I'll try to be more specific in the future. I tried $control-Enable(0) but the control still gets greyed out. I'm using activestate perl 5.8.7 and Win32::GUI 1.03 on

Re: perldoc

2005-12-18 Thread Eric Amick
On Sun, 18 Dec 2005 12:05:07 -0800, you wrote: At 09:03 PM 12/15/2005 -0800, Suresh Govindachar wrote: 1) What does the following line do? eval 'exec C:\opt\perl\bin\perl.exe -S $0 ${1+$@}' if 0; In perl it does nothing. Under bash it executes perl with itself as an

Re: Even after runtime eval with no __DIE__, can't avoid dying inside

2005-12-18 Thread Suresh Govindachar
Hello, $Bill, thanks for your code. I noticed one strange thing: Compare the output of running the code with the arguments -a perldoc and just perldoc. In the -a case, the output is raw pod. Another thing I found is that the scheme of assigning a variable to STDOUT and STDERR doesn't

how to detect a disconnected socket?

2005-12-18 Thread Foo Ji-Haw
Hi all, I have the same issue (see subject title) as Trever in the mailing list. Unfortunately reading through the mailing list archive it seems that his problem was not resolved. I'm hoping to have better luck with you guys. :) Basically, I need to know if my IO::Socket::INET socket

RE: how to detect a disconnected socket?

2005-12-18 Thread John Serink
Ok, if you're using sockets I strongly recommend you ALWAYS using sysread and syswrite as they baypass standard IO buffereing. Be careful with sysread, it cand and will return partial reads, you MUST be prepared for that. Unless you want your program to block on sysread, you should use