Re: Break a loop in Netware's PERL

2005-01-13 Thread GMane Python
#x27;t make UDP socket: $@"; $msg="PyHB"; print "Sending Heartbeat."; $MySocket->send($msg); sleep (5); } while (1==1); -Dave "Chris Devers" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Wed, 12 Jan 2005, John W. Krahn wrote:

Break a loop in Netware's PERL

2005-01-12 Thread GMane Python
Hello all I'm absolutely new to PERL -- actually, I'm using it for exactly 1 project I'm mostly through. On Netware's v5.8 of PERL, I have basically a loop, a while 1==1 { }. On Netware, I can't break out of this with CTRL-C. CTRL-D, etc. I'd like to put a check inside the loop to see if 'bre

Re: Can someone translate a small .PY to Perl?

2004-12-29 Thread GMane Python
It does not compile on Netware, but it's OK on Windows. For Netware, I copied from my Windows PC the perl/lib and perl/site directories to Netware because Sockets::IO was not found. Now, I get: Missing $ on loop variable at sys:\perl\lib/strict.pm li BEGIN failed--compilation aborted at sys:\per

Re: Can someone translate a small .PY to Perl?

2004-12-29 Thread GMane Python
t; wrote in message news:[EMAIL PROTECTED] > > > GMane Python wrote: > > Thank you for the reply to my topic, not BASH wars, but does this look > > correct? > > > > > > > > use IO::Socket; > > use strict; > > use Time::HiRes qw( time alar

Re: Can someone translate a small .PY to Perl?

2004-12-29 Thread GMane Python
I'm having a bit of trouble so far. The code below is what I've found on different web sites as being the functions I believe I need: use IO::Socket; use strict; use Time::HiRes qw( time alarm sleep ); while ( <> ) { my $message = IO::Socket::INET->new(Proto=>"udp",PeerPort=>'43278',PeerAddr=>'

Re: Can someone translate a small .PY to Perl?

2004-12-29 Thread GMane Python
Thank you for the reply to my topic, not BASH wars, but does this look correct? use IO::Socket; use strict; use Time::HiRes qw( time alarm sleep ); $server_ip = 'localhost'; $server_port = 43278; $microseconds = 5_000_000; while ( <> ) { my $message = IO::Socket::INET->new(Proto=>"udp",PeerPo

Can someone translate a small .PY to Perl?

2004-12-27 Thread GMane Python
Hello Everyone. Whil e reading the Python Cookbook as a means of learning Python, I came across the script by Nicola Larosa. Not knowing anything about PERL, I was wondering if there were a translation in PERL so I could have my Netware servers send heartbeats to the heartbeat server?