RE: Unicode, ANSI, and regular expressions in Perl 5.8

2006-04-14 Thread Bullock, Howard A.
Try... use Encode; open(my $FH, "<:encoding(UTF-16)", $file) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, April 14, 2006 5:17 PM To: activeperl@listserv.ActiveState.com Subject: Unicode, ANSI, and regular expressions in

Re: How to kill a dos window

2006-04-14 Thread Gregg Morrison
Jerry,         Aha - it's my error. It's not the /k switch but rather the /C switch! I.E.  <%COMSPEC%> /C c:\yourpath\yourfile.bat       If you are calling your .bat ( or .cmd ) file from inside Perl I think you would call it with 'exec'  instead of 'system' so the .bat  or .cmd file excute

Unicode, ANSI, and regular expressions in Perl 5.8

2006-04-14 Thread ianm
I attemped to run a simple line-by-line regular expression matching on a logfile output by another program. The code, however, refused to match. Even though I saw: 4:39:35 PM: 1382400 bytes video frame encoded. 4:39:35 PM: 19200 bytes audio sample encoded. Encoding ends at: 4:39:36 PM. Encoding

RE: Threads?

2006-04-14 Thread Jan Dubois
On Fri, 14 Apr 2006, Daniel Rychlik wrote: > Perhaps Im missing something then... May be a return status in the > last step of the function. No, a detached thread should just be cleaned up when it returns. But you still haven't shown any code for your thread function. What makes you sure it ever

RE: How to kill a dos window

2006-04-14 Thread Thurn, Martin
How did you open the DOS window? What does this have to do with perl, anyway??? P.S. please send ONLY PLAIN TEXT to mailing lists. - - Martin From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Gerald Preston Sent: Friday, April 14, 2

RE: Threads?

2006-04-14 Thread Daniel Rychlik
Perhaps Im missing something then... May be a return status in the last step of the function. I joined the ithreads group to start a discussion. Maybe it's a ID10T error on my part... Im sure its something that Im missing. -Original Message- From: Chris O [mailto:[EMAIL PROTECTED] Se

RE: Threads?

2006-04-14 Thread Chris O
> How do you destroy a thread when you know that its job is done? In my experiences, threads automatically terminate when it's commands are finished. I've never had on hang unless it is waiting on something. - Chris ___ ActivePerl mailing list ActivePe

RE: Threads?

2006-04-14 Thread Daniel Rychlik
I agree they should destroy themselves and clean up after them after they are done... This is frustrating. If I had known this I would have started this project with JAVA... Threads are so easy to do in JAVA. You give them a list of instructions; they do their jobs asynchronously or synchronous

RE: How to kill a dos window

2006-04-14 Thread Gerald Preston
Gregg,   The “exit” in the batch file worked great.  I tried this in win 98 and it kills the command, but leaves the dos window open.  Do you know of any way to kill the open dos window in 98?   Thanks,   Jerry   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of

Re: Threads?

2006-04-14 Thread $Bill Luebkert
Daniel Rychlik wrote: > I just found out that threads are indeed expensive... Even if my loop > sleeps for 2 minutes thread count continues to increment... How do you > destroy a thread when you know that its job is done? Let me preface by saying I don't use threads, but you would think that whe

RE: Threads?

2006-04-14 Thread Daniel Rychlik
I just found out that threads are indeed expensive... Even if my loop sleeps for 2 minutes thread count continues to increment... How do you destroy a thread when you know that its job is done? This is a 2K machine running the latest active perl. I am using ithreads. -Dan -Original Message

RE: How to kill a dos window

2006-04-14 Thread Thurn, Martin
There's no way to turn off the console when you run perl.exe; it needs to have somewhere for its STDOUT and STDERR to go (even if you never print anything there). One solution is to "compile" your program with perlapp and use the -gui switch on perlapp. - - Martin -Original Message-

RE: How to kill a dos window

2006-04-14 Thread Paul.Mann
Use the /c switch on the end of the statement that you want to continue. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Gerald PrestonSent: Thursday, April 13, 2006 7:31 PMTo: activeperl@listserv.ActiveState.comSubject: How to kill a dos

Re: How to kill a dos window

2006-04-14 Thread Gregg Morrison
Hi Jerry,   Try the "/K" Switch -       %COMSPEC% /K  X:\path\batchfile.bat   - OR -       Last line in Batch File:  "Exit"     Gregg Morrison   ___ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.Activ