On Tuesday 24 February 2004 15:49, Peterson, Darren - Contractor.Westar 
generously enriched virtual reality by making up this one:

> Hello, all.  I'm as green a Perl programmer as can be.  As a matter of
> fact, I am green in OO programming and network communications.  I spent 12
> years maintaining FORTRAN code on 1970's mainframe computers.  I do love
> FORTRAN...

welcome to perl then:-)

> But my boss has asked me to coordinate app execution on a handful of mixed
> boxes on a small LAN.  The boxes are W2K and Linux.  A network savvy friend
> of mine suggested Perl.  As I work through a tutorial (Beginning Perl @
> learn.perl.org, anyone have chapter 11?) on Perl starting this morning,
> what I really need immediate help with is TCP communication between a
> master app and a slave app.  As a base upon which to build I would like to
> set up a script on one box that throws a message, any message, through any
> port to a script on another box.  The second script should loop until
> message is received, then print and die.

Look at 

http://modperl.com:9000/perl_networking/source/ch5/

for code examples.
That is code from Lincoln Steins excellent book Network Programming with Perl.
Briefly: read about file handles the non OO way.
Then read about IO::File and IO::Socket.
Both inherit most (all) methods from IO::Handle, thus making the scource of 
your input / the destination of your output pretty arbitrary. ie: reading 
from a socket is no more difficult than reading from a file.
and: www.perldoc.com

Enjoy, Wolf


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to