Re: Database Help... Brain is mush

2006-03-16 Thread Chris Wagner
At 11:45 PM 3/15/2006 -0500, Trevor Joerges wrote: I'm having trouble figuring out how to loop through an infinite number of nested categories to print output like this: ID PARENT_ID AGRPCOUN DISP_ORDER CODENAMEACTIVE 1 0 0 1 fruit Fruit TRUE

Re: Maill::Pop3Client

2006-03-16 Thread Sisyphus
- Original Message - From: Splinter [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent: Thursday, March 16, 2006 6:08 PM Subject: Maill::Pop3Client Hello to all. Here is my question: How can I use Maill::Pop3Client module to connect to my gmail mailbox and check

FW: Nested If ...

2006-03-16 Thread Jay Dudson
From: Jay Dudson [mailto:[EMAIL PROTECTED] Sent: 15 March 2006 18:56 To: '[EMAIL PROTECTED]' Subject: Nested If ... Still quite a newbie. I am trying to build a basic web front end for modify a backend database. However because cgi and the way it deals with forms is

Implementing or Emulating TSRs in Win32 Console Apps

2006-03-16 Thread Veli-Pekka Tätilä
Hi, Is it possible to do a DOS TSR-program in Perl? In this context I mean an app which runs as long as you've got a DOS session open but which can lurk in the background, accepting commands or processing hotkeys. TSRs were sort of magical in the DOS days as it was a single-tasking OS and I

Re: Implementing or Emulating TSRs in Win32 Console Apps

2006-03-16 Thread Chris Wagner
U can do this by implementing ur own deceptively simple perl shell. U can set ur own single key commands, pass other commands off to cmd.exe or other programs, anything u can think of. I think there is an official perl shell out there that u could also modify. print Enter command: ;

Re: FW: Nested If ...

2006-03-16 Thread Chris Wagner
At 03:31 AM 3/16/2006 -0800, Jay Dudson wrote: However because cgi and the way it deals with forms is it work off an if statement - I want to include a nested if statement within the first if statement to check if the an entry exists based on the Hostname. U can nest if statements as deeply as u

Need help with range operator

2006-03-16 Thread Craig Cardimon
I need to read a large text file line by line until a certain tag is found, say TAG. This tag will exist on a line by itself. Then I need read in all subsequent lines, appending them to each other, until the ending tag /TAG is found, again on a line by itself. My logic, if you can call it

RE: Maill::Pop3Client

2006-03-16 Thread Splinter
I get following message when compiling this script: Can't locate object method new via package IO::Socket::SSL (perhaps you forgot to load IO::Socket::SSL?) at C:\WINDOWS\Temp\dir6FC.tmp\Notifier.pl line 8. I don't have IO::Socket::SSL module installed. This module requires Net::SSLeay module. I

Re: Maill::Pop3Client

2006-03-16 Thread Sisyphus
- Original Message - From: Splinter [EMAIL PROTECTED] To: 'Sisyphus' [EMAIL PROTECTED]; perl-win32-users@listserv.ActiveState.com Sent: Friday, March 17, 2006 10:06 AM Subject: RE: Maill::Pop3Client I get following message when compiling this script: Can't locate object method new

Hash return value

2006-03-16 Thread Edwards, Mark (CXO)
The each function requires a hash as an argument. I would think that a subroutine that returns a hash could be used as the argument, but it doesn't work. Why? Is my syntax wrong or is that just the way Larry made it? use warnings; use strict; my ($key, $value, %hash) ; # Using hash for

Re: Maill::Pop3Client - correction

2006-03-16 Thread Sisyphus
I wrote: ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSLeay.ppd it should be: ppm install http://theoryx5.uwinnipeg.ca/ppms/Net_SSLeay.ppd (You need to replace the hyphen with an underscore.) Cheers, Rob ___ Perl-Win32-Users mailing list

Re: Maill::Pop3Client - correction

2006-03-16 Thread Randy Kobes
On Fri, 17 Mar 2006, Sisyphus wrote: I wrote: ppm install http://theoryx5.uwinnipeg.ca/ppms/Net-SSLeay.ppd it should be: ppm install http://theoryx5.uwinnipeg.ca/ppms/Net_SSLeay.ppd (You need to replace the hyphen with an underscore.) It's even worse than that :) - the package is

RE: Implementing or Emulating TSRs in Win32 Console Apps

2006-03-16 Thread John Serink
Hi Veli: There are several way to do what you want. What not use threads? You could use IO::Select as well but that only works for sockets on Win32 unfortunately, in Linux it works with console handles as well. Threads is the most straight forward but I've had problems with threads crashing

FW: ActivePerl 5.8.8.816 released

2006-03-16 Thread John Serink
Hi All: After installing perl 5.8.8-816 I ran my handles leak program to see if perl is still leaking handles when using shared arrays and hashes with threads. Problem is, I don't have an answer on whether it still leaks handles because the interpreter crashes in the midst of lunching the

Re: Hash return value

2006-03-16 Thread Sisyphus
- Original Message - From: Edwards, Mark (CXO) . . # Using subroutine that returns a hash doesn't work while (($key, $value)= each( mkhash() )) One problem with allowing that is that at each iteration of the while loop, mkhash() gets re-run, returning another anonymous hash. The

Re: Maill::Pop3Client - correction

2006-03-16 Thread Sisyphus
- Original Message - From: Randy Kobes It's even worse than that :) - the package is Net_SSLeay.pm (based on the name of the CPAN distribution that the module comes in). Heh I give up :-) Why such a dumb name, btw ? I mean, if the package is named Net::SSLeay, why not just

Re: Implementing or Emulating TSRs in Win32 Console Apps

2006-03-16 Thread $Bill Luebkert
Veli-Pekka Tätilä wrote: Hi, Is it possible to do a DOS TSR-program in Perl? In this context I mean an app which runs as long as you've got a DOS session open but which can lurk in the background, accepting commands or processing hotkeys. TSRs were sort of magical in the DOS days as it

Re: Implementing or Emulating TSRs in Win32 Console Apps

2006-03-16 Thread Foo Ji-Haw
I would think you could do a lot of this using PerlTray (part of Activestate PDK). You can bind a hotkey to a callback and handle the sort of thing you want to do. I interpret Veli's requirement as some kind of a keyboard logger. PerlTray can probably register 1 or two (can it be more than

Re: ActivePerl 5.8.8.816 released

2006-03-16 Thread Sisyphus
- Original Message - From: John Serink [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent: Friday, March 17, 2006 12:39 PM Subject: FW: ActivePerl 5.8.8.816 released Hi All: After installing perl 5.8.8-816 I ran my handles leak program to see if perl is still leaking

RE: ActivePerl 5.8.8.816 released

2006-03-16 Thread Jan Dubois
On Thu, 16 Mar 2006, Sisyphus wrote: If you haven't already filed a perlbug report about this latest problem with perl 5.8.8, I think you should do so (see 'perldoc perlbug'). Perhaps you could modify/reduce handlesleak7.pl to better demonstrate the problem regarding the segfaults - and ignore