[9618] in Perl-Users-Digest
Perl-Users Digest, Issue: 3212 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Jul 21 09:07:11 1998
Date: Tue, 21 Jul 98 06:00:54 -0700
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Tue, 21 Jul 1998 Volume: 8 Number: 3212
Today's topics:
[Perl] How to find the Perl FAQ <rootbeer&pfaq*finding*@redcat.com>
Re: a simple search algorithm merzky@physik.hu-berlin.de
Re: Best perl book for web programming dave@mag-sol.com
Re: CGI: how to force Netscape to show results line by <perlguy@inlink.com>
Re: comp.lang.perl.announce redux #3 willhackperl@my-dejanews.com
Re: Flat-File Database <perlguy@inlink.com>
Re: GIF Line-Breaks in Perl <perlguy@inlink.com>
Re: GIF Line-Breaks in Perl <perlguy@inlink.com>
HELP Accessing Netscape FastTrack Users.db on BSD 3 usi <alexis@brandid.co.uk>
help: "LWP from CPAN" (CGI-Unix) <431854@cienz.unizar.es>
Re: More on Perl Conference 2.0 (Tad McClellan)
Re: More on Perl Conference 2.0 willhackperl@my-dejanews.com
Re: More on Perl Conference 2.0 (Chris Nandor)
Re: need expert opinions <quednauf@nortel.co.uk>
Need help with POST <file@job.to>
Re: Need help with POST <Tony.Curtis+usenet@vcpc.univie.ac.at>
Re: need help: open file for write tim221175@my-dejanews.com
Re: open (IN, "foo.txt") works, open (IN, "$foo") does <jdf@pobox.com>
Re: open (IN, "foo.txt") works, open (IN, "$foo") does (J|rgen P|nter)
Re: Perl CGI's under Windows NT scott@softbase.com
PERL System resource usage? <nowhere@nobody.com>
Perl Win32 DOS window size <stackhou@elk.cray.com>
Personality testing <clint@netcomuk.co.uk>
Re: Tcl is better than Perl schwern@starmedia.net
Re: What's wrong? (j)
Re: What's wrong? <Tony.Curtis+usenet@vcpc.univie.ac.at>
Special: Digest Administrivia (Last modified: 12 Mar 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 21 Jul 1998 10:24:06 GMT
From: Tom Phoenix <rootbeer&pfaq*finding*@redcat.com>
Subject: [Perl] How to find the Perl FAQ
Message-Id: <pfaqmessage901016641.24123@news.teleport.com>
Archive-name: perl-faq/finding-perl-faq
Posting-Frequency: weekly
Last-modified: 18 May 1998
[ That "Last-modified:" date above refers to this document, not to the
Perl FAQ itself! The last major update of the Perl FAQ was in Spring of
1997; of course, ongoing updates are made as needed. ]
For most people, this URL should be all you need in order to find Perl's
Frequently Asked Questions (and answers).
http://cpan.perl.org/doc/FAQs/
Please look over (but never overlook!) the FAQ and related docs before
posting anything to the comp.lang.perl.* family of newsgroups.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Beginning with Perl version 5.004, the Perl distribution itself includes
the Perl FAQ. If everything is pro-Perl-y installed on your system, the
FAQ will be stored alongside the rest of Perl's documentation, and one
of these commands (or your local equivalents) should let you read the FAQ.
perldoc perlfaq
man perlfaq
If a recent version of Perl is not properly installed on your system,
you should ask your system administrator or local expert to help. If you
find that a recent Perl distribution is lacking the FAQ or other important
documentation, be sure to complain to that distribution's author.
If you have a web connection, the first and foremost source for all things
Perl, including the FAQ, is the Comprehensive Perl Archive Network (CPAN).
CPAN also includes the Perl source code, pre-compiled binaries for many
platforms, and a large collection of freely usable modules, among its
560_986_526 bytes (give or take a little) of super-cool (give or take
a little) Perl resources.
http://cpan.perl.org/
http://www.perl.com/CPAN/
http://cpan.perl.org/doc/FAQs/FAQ/html/perlfaq.html
http://www.perl.com/CPAN/doc/FAQs/FAQ/html/perlfaq.html
You may wish or need to access CPAN via anonymous FTP. (Within CPAN,
you will find the FAQ in the /doc/FAQs/FAQ directory. If none of these
selected FTP sites is especially good for you, a full list of CPAN sites
is in the SITES file within CPAN.)
California ftp://ftp.cdrom.com/pub/perl/CPAN/
Texas ftp://ftp.metronet.com/pub/perl/
South Africa ftp://ftp.is.co.za/programming/perl/CPAN/
Japan ftp://ftp.dti.ad.jp/pub/lang/CPAN/
Australia ftp://cpan.topend.com.au/pub/CPAN/
Netherlands ftp://ftp.cs.ruu.nl/pub/PERL/CPAN/
Switzerland ftp://sunsite.cnlab-switch.ch/mirror/CPAN/
Chile ftp://ftp.ing.puc.cl/pub/unix/perl/CPAN/
If you have no connection to the Internet at all (so sad!) you may wish
to purchase one of the commercial Perl distributions on CD-Rom or other
media. Your local bookstore should be able to help you to find one.
Another possibility is to use one of the FTP-via-email services; for
more information on doing that, send mail to <mail-server@rtfm.mit.edu>
(not to me!) with these lines in the body of the message, flush left:
setdir usenet-by-group/news.announce.newusers
send Anonymous_FTP:_Frequently_Asked_Questions_(FAQ)_List
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Comments and suggestions on the contents of this document
are always welcome. Please send them to the author at
<pfaq&finding*comments*@redcat.com>. Of course, comments on
the docs and FAQs mentioned here should go to their respective
maintainers.
Have fun with Perl!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Tue, 21 Jul 1998 10:34:55 GMT
From: merzky@physik.hu-berlin.de
Subject: Re: a simple search algorithm
Message-Id: <6p1qsf$s4l$1@nnrp1.dejanews.com>
In article <e9127005-2007981428090001@sozgr.htu.tuwien.ac.at>,
e9127005@stud1.tuwien.ac.at (Sascha Kerschhofer) wrote:
> im trying to implement a simple serchalgorithm, which is searching line of
> a file. the thing is, that the whole stuff is behaving strange, so i was
> testing
> the out- and input.
>
> &search;
>
> sub search {
> local($lien, $name, $found);
> $name = "any_string";
> $found = 0;
> open(FILE, "orte2.txt");
> while (($found == 0) && ($line = <FILE>)) {
> chop($line);
> if ($name eq $line) {
> $found = 1;
> print $name." was found\n";
> } else {
> print $name." was not found but ".$line."\n";
> }
> }
> close(FILE);
> }
>
> anyway this doesnt work. the output is:
>
> any_string was not found but 1st_string
> any_string was not found but any_string
> any_string was not found but 2nd_string
>
> but the strange thing is, that if i change the else section to...
> print $name." was not found but *".$line."*\n";
> ...the output is
>
> *any_string was not found but *1st_string
> *any_string was not found but *any_string
> *any_string was not found but *2nd_string
looks damned like "\r" at the and, so chop removes the "\n"
of a "\r\n" pair - alas: it's a dos file!
anyway, searching is much more flexible with regular expressions,
so you could rather do something like:
instead of
if ($name eq $line) {
rather use
if ($line =~ /$name/) {
So all occurences of $name in $line are catched, and nobody cares
about EOL delimiters anymore...
Look at man perlre if you want to know about regular expresions...
Hth.
Andre.
>
> it seems that the * and the \n were switched. maybe this ist the reason
> why the serch does not work. what am i doing wrong?
> It is perl, version 5.002 on UNIX.
> any help is apreciated.
>
> Sascha Kerschhofer
>
--
Andre Merzky
pinocchio@earthling.net
http://pino.home.pages.de/
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Tue, 21 Jul 1998 11:06:13 GMT
From: dave@mag-sol.com
Subject: Re: Best perl book for web programming
Message-Id: <6p1sn5$u8c$1@nnrp1.dejanews.com>
In article <35B4121D.E9FA1329@isource.net>,
John <cbob@isource.net> wrote:
> Programming Perl is the only book that I've looked at, and it seems ok.
> How does it compare to the other books on the market. If all I'm going
> to be doing is web programming, should I spend my money on this book or
> on a different "aftermarket" book more tailored to the internet?
If you're going to be doing any programming in Perl, then Programming Perl
(the Camel book) is essential, but make sure you have the second edition (the
blue one).
The second (blue) edition of Learning Perl (the Llama book)
<http://www.oreilly.com/catalog/lperl2/> has a chapter at the end introducing
CGI.pm. This is also worth having.
For particular web programming applications, O'Reilly publish two more
specialised books, 'CGI Programming on the World Wide Wide'
<http://www.oreilly.com/catalog/cgi/> by Shishir Gundavaram and 'Web Client
Programming with Perl' <http://www.oreilly.com/catalog/webclient/> by Clinton
Wong. The CGI one is a little dated now (it doesn't mention CGI.pm) and I did
hear a rumour of a new edition soon, but any mention of it has vanished from
the O'Reilly web site.
hth,
Dave...
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Tue, 21 Jul 1998 11:47:21 GMT
From: Brent Michalski <perlguy@inlink.com>
Subject: Re: CGI: how to force Netscape to show results line by line?
Message-Id: <35B47FC9.90DA2DF6@inlink.com>
Try making 2 simple changes to your script and see if it works for you,
it did for me...
print &PrintHeader;
$|=1; ### Added this line.
print "<html><body>\n";
for ($count=0; $count<10; $count++) {
print "$count<BR>\n"; ### Added the <BR> in here.
sleep (1);
}
print "</body></html>\n";
HTH,
Brent
------------------------------
Date: Tue, 21 Jul 1998 12:17:21 GMT
From: willhackperl@my-dejanews.com
Subject: Re: comp.lang.perl.announce redux #3
Message-Id: <6p20sh$3d4$1@nnrp1.dejanews.com>
In article <5qn2a3kgmj.fsf@prometheus.frii.com>,
Nathan Torkington <gnat@frii.com> wrote:
[...]
> I want the comp.lang.perl.announce moderator to:
> Tag Commercial Posts [ ]
> Tag Unproductive :-) Posts [ ]
> Not Approve CGI Posts [ ]
>
None of the above [X]
Leave things as they are [X]
Dont open the door to moneygrubbing spammers [X]
Bill
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Tue, 21 Jul 1998 11:38:26 GMT
From: Brent Michalski <perlguy@inlink.com>
Subject: Re: Flat-File Database
Message-Id: <35B47DB2.19408912@inlink.com>
I have an example of a flat-file database at:
http://www.inlink.com/~perlguy/simple
Please bear-in-mind that this code is quite old. I am in the process of
rewriting it and incorporating many changes that will make it better
and easier to use.
But, it is meant as a resource that you can look at, learn from and
maybe even laugh at since it was one of my first stabs at Perl a few
years back.
Good luck,
Brent
------------------------------
Date: Tue, 21 Jul 1998 11:25:22 GMT
From: Brent Michalski <perlguy@inlink.com>
Subject: Re: GIF Line-Breaks in Perl
Message-Id: <35B47AA2.69B1FCF@inlink.com>
Wesley Miaw wrote:
>
> Hiya,
>
> I'm encountering trouble with the following Perl code in a CGI when executed
> on Windows NT using IIS 4.0 and Perl for win32 build 316 (Perl 5.003).
>
> print "Content-type: image/gif\n\n";
> open(IMAGE, "$members_dir\\$id\\$id\.gif") or return 0;
> binmode IMAGE;
> while (<IMAGE>) {
> print $_;
> }
> close IMAGE;
>
> ...
Have you tried something like:
open(IMAGE, "$members_dir/$id/$id.gif") or return 0;
instead? It looks much cleaner and will work fine on an NT system.
Try it and see if it solves your problem...
Brent
------------------------------
Date: Tue, 21 Jul 1998 11:26:14 GMT
From: Brent Michalski <perlguy@inlink.com>
Subject: Re: GIF Line-Breaks in Perl
Message-Id: <35B47AD6.49C9BFF0@inlink.com>
Larry is right about the BINMODE too!
------------------------------
Date: Tue, 21 Jul 1998 11:11:52 +0100
From: Alexis Cheshire <alexis@brandid.co.uk>
Subject: HELP Accessing Netscape FastTrack Users.db on BSD 3 using perl
Message-Id: <35B46968.F9434BD2@brandid.co.uk>
Help! - ( Newbie trying to teach himself perl with difficulty!)
I need to access and manage the Netscape Authenticated Users
database (Users.db)
using a perl script.
Is there a tutorial or reference on *.db administration using perl?
Or has anyone got a sample script??
Any help would be greatly appreciated
Ciao
Alexis
------------------------------
Date: Mon, 20 Jul 1998 22:44:10 +0200
From: miedo <431854@cienz.unizar.es>
Subject: help: "LWP from CPAN" (CGI-Unix)
Message-Id: <35B3AC1A.2466812F@cienz.unizar.es>
Someone has written it to me, i asked how to open a document in the
web; like searchers do to pick up the title or keywords from your page.
But i don4t undernstand nothing.
What is LWP and CPAN?
Thnaks.
------------------------------
Date: Mon, 20 Jul 1998 22:18:24 -0500
From: tadmc@flash.net (Tad McClellan)
Subject: Re: More on Perl Conference 2.0
Message-Id: <0a11p6.po1.ln@localhost>
lisam@oreilly.com wrote:
: The Perl Conference 2.0 is just one month away!
: Advanced
: Perl Fundamentals
Advanced fundamentals?
Is there really a talk scheduled with that exact title?
Which fundamentals are Basic and which are Advanced?
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Tue, 21 Jul 1998 12:02:03 GMT
From: willhackperl@my-dejanews.com
Subject: Re: More on Perl Conference 2.0
Message-Id: <6p1vvr$2a9$1@nnrp1.dejanews.com>
In article <35B3D415.70E5@oreilly.com>,
lisam@oreilly.com wrote:
> August 17-20, 1998 - San Jose, CA
>
> The Perl Conference 2.0 is just one month away!
[blah blah blah]
Couldn't this have been cross-posted? Did I have
to read this in clpm, clptk and clp.modules?
People wonder why some of us would rather have Merlyn
just keep doing what he's been doing with CLPA.
Just say no to O'Reilly spam.
Bill
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Tue, 21 Jul 1998 12:36:23 GMT
From: pudge@pobox.com (Chris Nandor)
Subject: Re: More on Perl Conference 2.0
Message-Id: <pudge-2107980835510001@dynamic473.ply.adelphia.net>
In article <35B3D415.70E5@oreilly.com>, lisam@oreilly.com wrote:
# one on ones. And you will hear from the core Perl developers
# including Larry Wall, Malcolm Beattie, Tom Christiansen, Tim
# Bunce, Nick Ing-Simmons, Chris Nandor on topics as far-ranging
# as Windows, MacPerl, 5.005, freeware, Apache and more.There's
# also a special presentation on XML and Perl by Tim Bray,
# co-editor of XML and a keynote by Tom Paquin of Netscape
# on mozilla.org.
I am honored to be mentioned in the same sentence as some of these people,
especially Larry Wall, but I think it was somewhat of an undersight ... I
have never really developed core perl, unless you count one patch to one
standard module, and the writing of one of the PODs.
I don't think it is false humility to say that I don't think I should have
been mentioned there. C'est la vie.
--
Chris Nandor mailto:pudge@pobox.com http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6'])
------------------------------
Date: Tue, 21 Jul 1998 10:59:09 +0100
From: "F.Quednau" <quednauf@nortel.co.uk>
Subject: Re: need expert opinions
Message-Id: <35B4666C.E65BDB6A@nortel.co.uk>
Zheng Yuan wrote:
>
> Right now when searching in the database I am doing this:
>
> open(LINK, "<myfile.dat");
> while ($item = <LINK>) {
> #search for a specific string
> }
> close LINK;
>
> Because my database is over 150000 records and 50 megs, this process can
> take a very long time which I wish I could speed up as well. I can't
> simply read all this into an array as it would eat up all memory.
>
> Any suggestions?
Well, difficult to say, who knows how the database entries look like. As
it sounds like you're using text, I would probably divide the database
up, maybe alphabetically, and then let the script decide before doing
the search on which file it is supposed to do the search.
------------------------------
Date: Tue, 21 Jul 1998 12:42:47 +0200
From: "file" <file@job.to>
Subject: Need help with POST
Message-Id: <6p1rf1$jea$1@usenet41.supernews.com>
Hi,
What is the quickest (as little traffic as possible) way to post information
to an outside site without wanting to know what it answers within a perl
script?....
Thanks
------------------------------
Date: 21 Jul 1998 14:45:33 +0200
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: Need help with POST
Message-Id: <7xhg0b2x02.fsf@fidelio.vcpc.univie.ac.at>
Re: Need help with POST, file <file@job.to> said:
file> Hi, What is the quickest (as little traffic as
file> possible) way to post information to an outside site
file> without wanting to know what it answers within a perl
file> script?....
use Royal::Mail;
What do you mean by "post" exactly?
Which protocol, if any, do you want to use?
Post some code, fergoodnessake! :-)
tony
--
Tony Curtis, Systems Manager, VCPC, | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien, AT | <URI:http://www.vcpc.univie.ac.at/>
"You see? You see? Your stupid minds! | personal email:
Stupid! Stupid!" ~ Eros, Plan9 fOS. | tony_curtis32@hotmail.com
------------------------------
Date: Tue, 21 Jul 1998 11:12:54 GMT
From: tim221175@my-dejanews.com
Subject: Re: need help: open file for write
Message-Id: <6p1t3m$ujd$1@nnrp1.dejanews.com>
In article <6ovpac$sip$1@nnrp1.dejanews.com>,
lindali@my-dejanews.com wrote:
> open ( ESH, ">$esMMDD_h.txt" ) || die "Can't create h file: $!\n";
Try 'open ( ESH, ">".$esMMDD."_h.txt" ) instead;
Good luck
Tim, tim221175@my-dejanews.com
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: 21 Jul 1998 08:36:06 -0500
From: Jonathan Feinberg <jdf@pobox.com>
To: Juergen.Puenter@materna.de (J|rgen P|nter)
Subject: Re: open (IN, "foo.txt") works, open (IN, "$foo") does not???
Message-Id: <d8aziawp.fsf@mailhost.panix.com>
Juergen.Puenter@materna.de (J|rgen P|nter) writes:
> >You ought to use CGI.pm.
>
> I wish I could, but it's impossible - stupid management.
Your management has nothing to do with being able to use CGI.pm. Just
install it in your own directory and use it. perlfaq8 will tell you
how it's done.
I'll bet a million zorkmids that the problem you're having is related
to incorrect use of the CGI.
--
Jonathan Feinberg jdf@pobox.com Sunny Brooklyn, NY
http://pobox.com/~jdf/
------------------------------
Date: 21 Jul 1998 10:45:39 GMT
From: Juergen.Puenter@materna.de (J|rgen P|nter)
Subject: Re: open (IN, "foo.txt") works, open (IN, "$foo") does not???
Message-Id: <6p1rgj$h79$1@penthesilea.Materna.DE>
In article <m3emvfu0gk.fsf@smart.ruhr.de>, tom@smart.ruhr.de says...
>
>If $path2 and $datei are not absolute paths (that is, if they
>don't start with / ), then it could very well be that upon
>execution of your CGI script the working directory is not
>what you think it is. Try to figure out the working directory
>of CGI scripts when they get exec()'d by your webserver and
>make sure your path can work relative to that---or give an absolute
>path (the best solution, IMHO).
Generally speaking, yes. But the main point is that the script
fails - all other conditions being equal - when I use $datei instead
of $path2. If the path were not accessible, the script should fail in
both cases, not only in one, as it does now. And the path _is_ equal
in both cases. Sadly it's not that easy ;-)
Thanks anyway
Juergen Puenter
------------------------------
Date: 21 Jul 1998 12:34:30 GMT
From: scott@softbase.com
Subject: Re: Perl CGI's under Windows NT
Message-Id: <35b48ad6.0@news.new-era.net>
I have solved this problem, and ought to write up a web page about
it since it gets asked so often.
With both IIS and PWS: *DO* *NOT* *USE* *PERL.EXE* !!!!!!!
It won't work. I've never gotten it to work. It's hopeless. Cut
your losses and get out while you can. Typical losses include:
1. Just downloading the Perl file -- this happens because the
registry isn't configured to run a .pl file as a CGI program.
It thinks you're downloading a ZIP file or something.
2. Running a .pl program successfully, but having it hang and
freeze. This happens if you get perl.exe to somehow run. The
file handles for perl.exe are screwed up, as far as I can tell,
and it hangs waiting to read or write. That's my guess, and
only a guess since there's no way to debug the problem.
Use the ISAPI DLL version of Perl. If you install it, it magically
sets up the right arcane registry entries for you, and the DLL
version actually works. There are still some cases where it
won't run, particularly if you launch an external process. But
for normal testing, it works.
Scott
--
Look at Softbase Systems' client/server tools, www.softbase.com
Check out the Essential 97 package for Windows 95 www.skwc.com/essent
All my other cool web pages are available from that site too!
My demo tape, artwork, poetry, The Windows 95 Book FAQ, and more.
------------------------------
Date: Tue, 21 Jul 1998 12:12:34 +0100
From: Andy Dowling <nowhere@nobody.com>
Subject: PERL System resource usage?
Message-Id: <35B477A2.ABE63F7A@nobody.com>
Does anyone know of any PERL modules which provide the functionality to
determine available system resources such as memory and CPU usage, etc?
Thanks,
Andy Dowling
E-mail: andy<dot>dowling<at>sse<dot>ie
------------------------------
Date: Tue, 21 Jul 1998 06:05:21 -0500
From: Mark P Stackhouse <stackhou@elk.cray.com>
Subject: Perl Win32 DOS window size
Message-Id: <35B475F1.2781@elk.cray.com>
Can the DOS shell window size be controlled or configured from within my
Perl scripts? I'd like to be able to display text in a typical 80
column x 66 line format but that option is not offered in the DOS shell
window header.
--
Mark Stackhouse
x62942
*********************************************************
*
* Senior Electrical-Mechanical Technician
* Homepage - http://wwwmfg.cray.com/~stackhou
* E-mail - stackhou@elk.cray.com
*
* Off site homepage - http://www.execpc.com/~stackhou
*
* Home E-mail - stackhou@execpc.com
*
* "The best things in life aren't things"
*
*********************************************************
------------------------------
Date: Tue, 21 Jul 1998 12:49:38 +0100
From: "Clinton Gormley" <clint@netcomuk.co.uk>
Subject: Personality testing
Message-Id: <6p1v97$mm1$1@taliesin.netcom.net.uk>
Do you know of a personality test written in perl that i could incorporate
into a web site?
thanks
clint
------------------------------
Date: Tue, 21 Jul 1998 12:42:49 GMT
From: schwern@starmedia.net
Subject: Re: Tcl is better than Perl
Message-Id: <6p22c9$58t$1@nnrp1.dejanews.com>
I don't know what you mean by "talk to my client".
If you mean literally "to have a conversation with", then I think you should
have a look at the Expect module (available at a CPAN near you.) This is
actually a carry-over from the TCL universe and is probably what people were
thinking of when they told you to use TCL.
If you merely want to write a client which communicates a certain protocol
(NNTP, SMTP, HTTP, etc...) tip-toe through CPAN and see if there's a module
pre-built for you to use. In straight client/server communication, Perl
should be much better than TCL.
In article <6p0f8n$3ks$1@nntp.Stanford.EDU>,
kinkoi@leland.Stanford.EDU (Kin-Koi Lo) wrote:
> Hi,
>
> I am going to write script programe so that the server can talk to my client
programe. People told me it is better to use Tcl instead of Perl. I only know
Perl and know nothing about Tcl. Would anyone tell me which is better?
>
> Thanks,
> Kinkoi
>
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/rg_mkgrp.xp Create Your Own Free Member Forum
------------------------------
Date: Tue, 21 Jul 1998 10:42:43 GMT
From: jjones@nospam.elementdesign.com (j)
Subject: Re: What's wrong?
Message-Id: <35b4708a.30091175@nntp.best.com>
On Tue, 21 Jul 1998 00:38:30 -0700, Wilson Henriquez
<henrwi00@usfca.edu> wrote:
> I'm starting to learn perl from Learning Perl(O'reilly), and I am
>having trouble. I'm running Linux and use joe to create a text file
>named ex. In ex I put the following code,
>#! /usr/bin/perl
#!/usr/bin/perl
not
#! /usr/bin/perl
and make sure your perl is in fact in /usr/bin/perl
------------------------------
Date: 21 Jul 1998 13:41:08 +0200
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: What's wrong?
Message-Id: <7xk9572zzf.fsf@fidelio.vcpc.univie.ac.at>
Re: What's wrong?, Wilson <henrwi00@usfca.edu> said:
Wilson> named ex. In ex I put the following code, #!
Wilson> /usr/bin/perl print ("Hello, world!\n"); Then I save
Wilson> the file and do, chmod +x ex. Next I try to run the
Wilson> exeecutable file I get the message "print not
Wilson> found".
Try running the command "which ex". I think you might get a
surprise...
hth
tony
--
Tony Curtis, Systems Manager, VCPC, | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien, AT | <URI:http://www.vcpc.univie.ac.at/>
"You see? You see? Your stupid minds! | personal email:
Stupid! Stupid!" ~ Eros, Plan9 fOS. | tony_curtis32@hotmail.com
------------------------------
Date: 12 Jul 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Mar 98)
Message-Id: <null>
Administrivia:
Special notice: in a few days, the new group comp.lang.perl.moderated
should be formed. I would rather not support two different groups, and I
know of no other plans to create a digested moderated group. This leaves
me with two options: 1) keep on with this group 2) change to the
moderated one.
If you have opinions on this, send them to
perl-users-request@ruby.oce.orst.edu.
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V8 Issue 3212
**************************************