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
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
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
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:
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
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
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
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
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.
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
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
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
.
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 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
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
15 matches
Mail list logo