Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!ub!csn!boulder!spot.Colorado.EDU!frechett From: frechett@spot.Colorado.EDU (-=Runaway Daemon=-) Newsgroups: comp.lang.perl Subject: What am I missing from chat2.pl? Message-ID: <1991May27.120442.16645@colorado.edu> Date: 27 May 91 12:04:42 GMT Sender: news@colorado.edu (The Daily Planet) Organization: University of Colorado, Boulder Lines: 32 Nntp-Posting-Host: spot.colorado.edu I have the begginnings of of a script here.. It is based directly off of a perl script that is supposed to go off and get the weather so I know the syntax is correct.. or should be if the weather sript actually works.. (it can't connect to the machine and times out there) but working with it as an example I started this. #!/usr/bin/perl push(@INC,'/users/en-ecen/frechett/perl'); require './chat2.pl'; &chat'open_port('spot.colorado.edu', 4242) || die "open: $!"; &talk("$1\n"); $_ = &listen(1); &talk("nick Dae\n"); And what does it do.... Undefined subroutine "main'talk" called at /users/en-ecen/frechett/perl/chat line 8. I just picked up the chat2.pl file and a few examples and a bunch of them use talk and listen and my scripts can't find either one. The examples I am looking at have only one require line.. and that is require 'chat2.pl'; and mine is correctly placed.. > ls ~/perl/chat2.pl /users/en-ecen/frechett/perl/chat2.pl* all my other requires work for this directory.. but this doesn't.. ALSO, I don't even see one instance of talk in chat2.pl, so what am I missing? ian perl 3 p41