Lyle Kopnicky wrote:
I don't know why it didn't work on STDOUT, though (when I was
redirecting it to a file from the command line).
I don't know either :-)
### try.pl ###
use warnings;
#$| = 1;
print "123\n";
sleep(10);
If I run that as 'perl try.pl >out.txt', and kill the process with
Ctrl-C be
Judson, Richard wrote:
Hi folks!
I found a perl mod on cpan for perfmon data. Yes, I know about win32::perflib but the perfmon module looks a lot cleaner and easier to use. But, even though I installed it and the package is in \perl\site\lib\win32 I can't use it, says it can't be found in @INC. I
Jack D. wrote:
> http://cpansearch.perl.org/~empi/
>
> I tried it but cannot seem to get a proper object? Anyways - all the API
> calls are there if you want to try and code it yourself. You might be better
> off going through all the dialogs - you likely could do it in a shorter
> timespan :-)
$Bill Luebkert wrote:
Lyle Kopnicky wrote:
Hi folks,
Autoflush doesn't seem to be working. I have written a server program
which outputs logging information to the console. When I redirect it to
a file, the file stays size zero until a lot of stuff is in it.
Typically I stop the program by
Lyle Kopnicky wrote:
> Hi folks,
>
> Autoflush doesn't seem to be working. I have written a server program
> which outputs logging information to the console. When I redirect it to
> a file, the file stays size zero until a lot of stuff is in it.
> Typically I stop the program by killing it
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Earthlink-m_ryan
> Sent: March 10, 2005 1:26 PM
> To: Perl-Win32-Users@listserv.ActiveState.com; Chris Wagner
> Subject: Re: adding a title to a file on windows
>
> Chris wrote:
> > The file comm
Title: RE: select function
Maybe the difference is that I autoflush the socket?
vec( $rin, fileno( SERVER), 1) = 1;
while( $run)
{
if( select( $rout=$rin, undef, undef, $update_interval))
{
$sd_iaddr = accept( CLIENT, SERVER);
binmode( CLIENT);
autoflush C
Lyle,
This code works for me on Windows:
vec( $rin, fileno( $sock_des), 1) = 1;
if( not( select( $rout=$rin, undef, undef, $update_interval))) {
return( my_die("select: $!"));
}
The only real difference I see between your code and my code is that I
use 'un
The select function isn't behaving the way I expect. I sent some text
on a socket, then wanted to wait to see when the response was available,
with a timeout. I wrote code like this:
my $rin = "";
vec($rin, fileno($socket), 1) = 1;
if (select($rin,"","",$MessageTimeout) == 0) {
reopen c
Well, it doesn't work for me. It's the same as not using it - I get no
output in my log file. Not very useful. :(
- Lyle
Craig Cardimon wrote:
I use "$| = 1;" myself. It works well enough. There is a thing with
the buffer and memory and all that fun stuff.
It doesn't always function as quick
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Swartwood, Larry H
> Sent: March 11, 2005 10:22 AM
> To: [EMAIL PROTECTED]; perl-win32-users@listserv.ActiveState.com
> Subject: RE: perl tk binding question
>
>
> I'm not sure why but when I cha
Xbase module occassionally cuts off the last letter of the dbf fields. Am I the only one who gets this problem? Here is my code:
$database = new Xbase; $database->open_dbf("$upload_file_path_name$filename"); $database->go_top; open(STDOUT, ">dbf_fields.txt"); $database->dbf_stat; close(
I use "$| = 1;" myself. It works well enough. There is a thing with the
buffer and memory and all that fun stuff.
It doesn't always function as quickly or as smoothly as I would like it
to, but it is much better than not using it.
-- Craig
Lyle Kopnicky wrote:
Hi folks,
Autoflush doesn't seem t
Hi folks,
Autoflush doesn't seem to be working. I have written a server program
which outputs logging information to the console. When I redirect it to
a file, the file stays size zero until a lot of stuff is in it.
Typically I stop the program by killing it, and that doesn't cause the
buffe
I'm not sure why but when I change your binding to:
$li->bind('' =>\&li);
...it works.
This site might explain it:
http://www-users.cs.umn.edu/~amundson/perl/perltk/bind.htm
I don't have time to read it all right now.
--Larry S.
-Original Message-
From: [EMAIL PROTECTED]
[mailto:
Title: DBI handle as hash key
John Deighan wrote, on Fri 3/11/2005 09:14: I would like to use DBI handles as hash keys. I thought
that I'd read: somewhere quite a while ago that Perl was adding the
capability to use: non-scalar values as a hash key. However, when I
try $h->{$db} = $string
I'm using HTML::FormatText to format a file that contains HTML tags and
customized tags.
I'd like to remove the tags, but keep the overall layout and appearance
of the file as it appears in a text editor.
When I run this:
$wholefile3 = HTML::FormatText->new->format(parse_html($wholefile2));
on
Hi folks!
I found a perl mod on cpan for perfmon data. Yes, I know about
win32::perflib but the perfmon module looks a lot cleaner and easier to use.
But, even though I installed it and the package is in \perl\site\lib\win32 I
can't use it, says it can't be found in @INC. I'm running activeper
I would like to use DBI handles as hash keys. I thought that I'd read
somewhere quite a while ago that Perl was adding the capability to use
non-scalar values as a hash key. However, when I try $h->{$db} = $string,
where $db is a DBI handle, the DBI handle is converted to a string. If
that's t
19 matches
Mail list logo