RE: grep

2001-06-04 Thread Jesse Sookne
Tanya, If all you want to do is add header info to the top of a bunch of files, you could use something like the script below, which is simpler than using grep, etc. The script below would be invoked as (for example): perl header.pl C:\*.c D:\*.cpp Hope this helps, Jesse #Begin Script #!/usr

RE: filetest operators

2001-05-15 Thread Jesse Sookne
I suspect the -W and -w operators are only looking at the MS-DOS style attributes of the directory, not the NT permissions. I ran "attrib +r" on a directory, and -W/-w returned false. After running "attrib -r" on the directory, they returned 1. I think to get at the NT permissions, you'll need

RE: very basic TK ?

2001-05-09 Thread Jesse Sookne
Seems like there are two things you can do to correct this: 1) Change the line "use TK;" to "use Tk;" (make the "K" lowercase). 2) Change the line "MainLoop;" to "$mw->MainLoop;". I'm not sure what the differences between TK and Tk are (or why there's two Tk modules), but apparently the Tk modul

RE: Threads in ASPerl build 623

2001-04-04 Thread Jesse Sookne
ll [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 04, 2001 1:49 PM To: [EMAIL PROTECTED] Subject: RE: Threads in ASPerl build 623 (sorry..) On Wed, 4 Apr 2001, Jesse Sookne wrote: >See message below. This is definitely a FAQ. > >-Jesse > >-Original Message- >From:

RE: Threads in ASPerl build 623

2001-04-04 Thread Jesse Sookne
Title: RE: Threads in ASPerl build 623 See message below.  This is definitely a FAQ. -Jesse -Original Message- From: Jesse Sookne Sent: Thursday, March 29, 2001 11:17 AM To: 'Kirk Rogers'; Perl-Win32-Users2 (E-mail) Subject: RE: Multithreaded Apps on Win32? I

RE: Multithreaded Apps on Win32?

2001-03-29 Thread Jesse Sookne
In perl 5.6, threads are implemented via the fork() emulation. Read perldoc perlfork for more info. The Thread module was used in previous versions, and is not compatible with 5.6. -Jesse -Original Message- From: Kirk Rogers [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 29, 2001 11

RE: building a "time range" structure

2001-03-15 Thread Jesse Sookne
Hi Chuck, Here's a quick hack that seems to work. I'm sure there are better ways of doing it though. Anyway, hope this helps. -Jesse my %timeranges = ( 1 => { #network number 4 => { '_1159' => 4, '1200_2400' => 6 },#day 4 = Thursday 5 => { '_1159

RE: How do I use threads

2001-03-05 Thread Jesse Sookne
Oops, non-HTML version follows. -Jesse -Original Message- From: Jesse Sookne Sent: Monday, March 05, 2001 11:29 AM To: 'Peter Guzis'; 'Robert Follis'; '[EMAIL PROTECTED]' Subject: RE: How do I use threads Actually, threads are implemented in ActivePerl

RE: How do I use threads

2001-03-05 Thread Jesse Sookne
Title: RE: How do I use threads Actually, threads are implemented in ActivePerl 5.6, but not with the Threads module, which as far as I know is only for the 5xx builds of ActivePerl. In AP 5.6, you can use threads through the fork() emulation.  Read 'perldoc perlfork' for more info.

RE: Serial Number

2001-03-02 Thread Jesse Sookne
some such has similar. Good luck, Christopher P.S. btw I know that there are umpteen tinier regexps that would work. Guru's may post them freely, as I wouldn't mind seeing them as well. (a scalar buffer and /s comes to mind) > -Original Message- > From: Jesse Sookne [mai

RE: Win32::OLE And Windows Media Encoder Conundrum

2001-03-02 Thread Jesse Sookne
Hello Troy, Below is the text of a message from Jan Dubois, answering a question I asked a while ago that's similar to your question. Hope this helps, Jesse -Original Message- From: Jan Dubois [mailto:[EMAIL PROTECTED]] Sent: Wednesday, August 23, 2000 6:43 PM To: Jesse Sook

how to check if a thread (pseudo-process) is still running

2001-02-19 Thread Jesse Sookne
ll(0, $pid), "\n"; } else { sleep 5; print "CHILD: Exiting.\n"; exit(); } # Note that kill(0, $pid) does return 0 if I give it a PID that's never existed. Any ideas about why this is happening, or ways to work around it, would be much appreciated. Thanks Je

RE: dereferencing hash problem

2000-12-07 Thread Jesse Sookne
. So, your code, changed so that you're dealing with a normal hash and you can get the data out of it the way you expected to, would be: ### %win2k_counters= ( 'CommitedBytesInUse'=> "\\Memory\\ Committed Bytes In Use", 'MbytesAvail' => "Memo

testing

2000-12-07 Thread Jesse Sookne
testing to see if this comes out in HTML or plain textplease ignore. ___ Perl-Win32-Users mailing list [EMAIL PROTECTED] http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users

RE: :UserAgent Won't run from browser

2000-10-06 Thread Jesse Sookne
Title: RE: :UserAgent Won't run from browser I noticed one thing in your script: you have print "Context-type: text/html\n\n"; It should be "Content-type", not "Context-type". -Jesse Sookne -Original Message- From: G M [mailto:[EMAIL PROTE