[6716] in Perl-Users-Digest
Perl-Users Digest, Issue: 341 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Apr 22 04:07:24 1997
Date: Tue, 22 Apr 97 01:00:30 -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, 22 Apr 1997 Volume: 8 Number: 341
Today's topics:
[Sys::Syslog] Some problem when I use Sys::Syslog (DUTKA-MALEN Ivan)
About Win32::ODBC with Oracle (PO7) <ckwu6@iesun21>
help: find pattern, then go down 3 lines (David Penney)
Re: Lisp is neither (was Re: Ousterhout and Tcl lost th (Henry Baker)
Re: Lisp is neither (was Re: Ousterhout and Tcl lost th (Henry Baker)
Re: Lisp is neither (was Re: Ousterhout and Tcl lost th (Henry Baker)
Re: Lisp is neither (was Re: Ousterhout and Tcl lost th <bear@sonic.net>
Lisp is not the issue <cimarron@dis.org>
Re: Matching (Jordyn A. Buchanan)
Name that OS(unix,nt,?) question. (cssm.com)
Re: Newbie Alert: Help! Netscape only sees my Perl sc <critter@quack.kfu.com>
Re: No syntax errors, but still the thing won't run <cottert@sonic.net>
Re: Ousterhout and Tcl lost the plot with latest paper (Henry Baker)
Re: Perl and Access or Oracle <Hans.Suijkerbuijk@SD.BE>
Problem with Oraperl... pdemeyer@tmphard.univ-lr.fr
Regular expression with Hex code (Cheng Tyh Lin)
Re: They both suck! (was: Borland or Microsoft compiler <tm@sinnerz.com>
Re: They both suck! (was: Borland or Microsoft compiler <benh@cristie.co.uk>
Re: Two-Way Sockets in Perl <silvera@psi.com>
Re: using "$var" considered harmful?! (was Re: Q: openi (Russell Schulz)
Re: Web/database interface <santiago@gambito.com>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 22 Apr 1997 09:38:37 +0200
From: dutka@rantanplan.dr.gdf.fr (DUTKA-MALEN Ivan)
Subject: [Sys::Syslog] Some problem when I use Sys::Syslog
Message-Id: <xllenc3qzgi.fsf@rantanplan.dr.gdf.fr>
Hello,
I had to build some sysadmin tool, and I decided to write it in PERL.
I need to use the 'syslog' facility of the system to keep trace of the
execution of my tool. But when I use the Sys::Syslog package in my tool,
my PERL script fails.
This very small PERL script shows the error :
$ cat ./my_syslog_example.pl
#!/usr/local/bin/perl
use Sys::Syslog;
$ ./my_syslog_example.pl
Undefined subroutine &Sys::Syslog::hostname called at
/usr/local/lib/perl5/Sys/Syslog.pm line 92.
BEGIN failed--compilation aborted at ./my_syslog_example.pl line 2.
Does anybody know why this fails ? I'm using the standard Sys::Syslog
package. Maybe did I make a mistake when installong PERL on my workstation
(SUN Ultra with Solaris 2.5).
Thanks in advance
--Ivan
--
------------------------------------------------------------------------------
Ivan DUTKA-MALEN
dutka@dr.gdf.fr
------------------------------
Date: Tue, 22 Apr 1997 13:52:20 +0800
From: "Patrick C. K. Wu" <ckwu6@iesun21>
Subject: About Win32::ODBC with Oracle (PO7)
Message-Id: <Pine.SOL.3.95.970422134951.3363A-100000@iesun21>
Hi all
Is there any information about accessing Oracle Database using
Win32::ODBC?
Thanks for any comments and pointers
Regards/Patrick C. K. Wu
email: ckwu6@ie.cuhk.edu.hk
------------------------------
Date: Tue, 22 Apr 1997 03:30:56 GMT
From: david@penney.mv.com (David Penney)
Subject: help: find pattern, then go down 3 lines
Message-Id: <335c2f15.464863@news.mv.com>
Hi,
I have a file that I want to read and look for a pattern. When I find
the pattern, I would like to go down 3 lines in the file and read in
the value (actually the 5th and 6th character on that line but I
think I can figure that one out) on that line and continue reading in
the file. I'm pretty sure it's straightforward but am having trouble.
Could someone help?
while (<>)
if (/pattern/)
?????
Any input would be appreciated.
Thank you,
David
david@penney.mv.com
------------------------------
Date: Tue, 22 Apr 1997 07:33:17 GMT
From: hbaker@netcom.com (Henry Baker)
Subject: Re: Lisp is neither (was Re: Ousterhout and Tcl lost the plot)
Message-Id: <hbaker-2104972333170001@10.0.2.1>
In article <335BAB74.458F@polaroid.com>, prasadm@polaroid.com wrote:
> If this experience is BS, what is the truth? Why _did_
> the Lisp machines die? People keep blaming "marketing", but
> did LMI/Symbolics founders not have enough smarts or the money
> to hire some good marketing people? I would doubt either
> of these two was the case.
>
> Or maybe the machines were just too expensive to produce,
> to be able to sell them successfully.
The very short answer is that Symbolics promised a 'Lisp Chip' within
a certain time frame that would bring the price down to the point of
being available to the masses, and they were many years late with this chip.
The chip itself wasn't all that complicated, but the politics surrounding
getting it funded certainly were.
------------------------------
Date: Tue, 22 Apr 1997 07:39:27 GMT
From: hbaker@netcom.com (Henry Baker)
Subject: Re: Lisp is neither (was Re: Ousterhout and Tcl lost the plot)
Message-Id: <hbaker-2104972339270001@10.0.2.1>
In article <335BB755.4B88@sonic.net>, Ray Dillinger <bear@sonic.net> wrote:
> Lisp machines may have had fabulous email systems, but how much good
> does that do if the rest of the company is running on *another* email
> system? You want to buy lisp machines for every secretary and marketing
> rep, just so they can all use the same email system?
Symbolics email system was compatible with every email system on the
arpanet, from unix boxes, to vms boxes, to dec-20 boxes, to pc's. If Apollo
couldn't handle internet mail, then that was Apollo's problem, not the Lisp
Machines.
There were _some_ forms of mailer gateways, and in the later years, Symbolics
may very well have supported those, as well.
Oh by the way, I understand that all of the email sent to the White House
is being handled by a Lisp mail system that may very well be still running
on a Lisp Machine. This project was being run out of MIT a year or two
ago.
------------------------------
Date: Tue, 22 Apr 1997 07:52:30 GMT
From: hbaker@netcom.com (Henry Baker)
Subject: Re: Lisp is neither (was Re: Ousterhout and Tcl lost the plot)
Message-Id: <hbaker-2104972352300001@10.0.2.1>
In article <slrn5lnl9m.la9.mike@ducky.net>, mike@ducky.net (Mike Haertel) wrote:
> * LispM's were not multi-user - they could have only
> one logged-in user at a time, although they did
> provide a degree of remote access.
LispM's had a full multithreaded environment--something not seen in
personal computers until very recently. Apple is still having difficulties
with this one.
> * LispM's were not secure - the whole system, including
> the operating system kernel, ran in a single giant
> address space.
A better way of saying this is that LispM's are much _more_ secure, because
every item has its hardware datatype which is religiously checked on every
access. LispM's weren't the machines crashing when those internet worm
attacks were going on!
> The LispM's also cost too much--especially for single-user machines!
The first two items aren't problems on PC's, so we can only conclude that
the third item--the cost--is the real problem here. If Symbolics had achieved
their Lisp chip in the initially promised time frame--approximately 1985--
instead of 1988-9, the whole character of the argument would have changed.
Apple would have gone after the low end of the wimp market, and the Lisp
Machines would have captured the space currently occupied by low-end SGI
machines. Even though it ran on a much slower processor, the Symbolics graphics
software was miles ahead of anything else in the late 1980's, and so it still
managed to compete for a while with its slow hardware.
------------------------------
Date: Tue, 22 Apr 1997 00:46:19 -0700
From: Ray Dillinger <bear@sonic.net>
Subject: Re: Lisp is neither (was Re: Ousterhout and Tcl lost the plot)
Message-Id: <335C6CCB.1E1F@sonic.net>
Henry Baker wrote:
>
> In article <335BB755.4B88@sonic.net>, Ray Dillinger <bear@sonic.net> wrote:
> > Lisp machines may have had fabulous email systems, but how much good
> > does that do if the rest of the company is running on *another* email
> > system? You want to buy lisp machines for every secretary and marketing
> > rep, just so they can all use the same email system?
>
> Symbolics email system was compatible with every email system on the
> arpanet, from unix boxes, to vms boxes, to dec-20 boxes, to pc's. If Apollo
> couldn't handle internet mail, then that was Apollo's problem, not the Lisp
> Machines.
Oh, how nice, if the rest of your business happens to be using SMTP
email (SMTP was the standard on ARPANET, as I recall, even back before
it became the internet). But at the time, there WAS NO STANDARD that
commanded more than a small fraction of the market. ARPANET was a few
thousand machines mostly at military bases and a few universities.
Software houses were using PC-pursuit and SEADOG, for godssake! They
went for SMTP no doubt because it was the biggest -- but even so, I bet
it "fit in" with less than a quarter of their clients' email systems.
> There were _some_ forms of mailer gateways, and in the later years, Symbolics
> may very well have supported those, as well.
Mailer gateways? You wanna send interoffice memos through mailer
gateways in 1984? All the mailer gateways that existed at the time
required you to stand on your head, manually fill in forward-to
addresses, click your heels together three times, do a backflip,
keep your lines shorter than 40 characters and your posts under
80 lines long, wave a dead chicken over your monitor, and guess
how many nulls your host needed at end-of-line. Most of them
delayed mail by at least four hours, and most of them reformatted
your mail for line length -- and let's not forget dropping
characters on the floor due to line noise about every two lines
(remember, at that time if it wasn't arpanet it didn't have an
error-correcting protocol).
Mailer gateways were a bleeding nightmare in 1984. I know, because
I ran one. You don't wanna go there, really.
Bear
>
> Oh by the way, I understand that all of the email sent to the White House
> is being handled by a Lisp mail system that may very well be still running
> on a Lisp Machine. This project was being run out of MIT a year or two
> ago.
------------------------------
Date: Mon, 21 Apr 1997 23:31:46 -0700
From: Cimarron Taylor <cimarron@dis.org>
Subject: Lisp is not the issue
Message-Id: <335C5B52.32B4@dis.org>
John Ousterhout wrote:
>
> One of the most common criticisms of my white paper has been that the
> distinction between scripting and system programming is artificial, and
> that it is possible for a single language to be good at both tasks.
> [...]
I think this statement is as bad a simplification of the
criticism of your paper as your paper itself is a simplification
of the problems solved by programming languages.
Your paper concludes "scripting will become an even more
important programming paradigm in the next century than it
is today."
My criticism is that this conclusion does not follow because
of simplistic assumptions about the roles and uses of programming
languages in computing. You yourself say
> By the way, I think that Lisp is a fascinating language [...] It just isn't
> good for system programming or scripting. This reinforces my claim that you
> should use different tools for different tasks. This is also why I didn't
> mention Lisp in the paper. The things I discussed in the white paper aren't
> the things that Lisp was designed for or that it does best, so it isn't
> really fair to compare Lisp along those dimensions.
This is precisely my point. If you should use different tools
for different tasks than it is the nature of the tasks which
determine the tools you should use, not some academic argument
about typing or some other feature.
There may exist a compelling argument that scripting will become
more important, but your paper does not make it.
In the introduction of your own book you write that Tcl and Tk
were born out of frustration with the tools that predated them.
In the 21st century I predict we will use tools born from the
frustration of using tools such as Tcl and Tk.
Cimarron Taylor
cimarron@dis.org
------------------------------
Date: Tue, 22 Apr 1997 02:21:42 -0400
From: jordyn@bestweb.net (Jordyn A. Buchanan)
Subject: Re: Matching
Message-Id: <jordyn-ya02408000R2204970221420001@nntp.bestweb.net>
mc4650@mclink.it (Stefano Barbato) wrote:
> How can I usa a string variable as matching string into a IF statement
> without using the eval() that inside a WHILE cycle dramatically increase
> execution time?
>
> for ex.
>
> $tmp= '/\d\d\t \d/;
> while(<INFILE>) {
> if(eval($tmp)) { # I don't want to use eval
> # I would like something like if (regex($tmp))
> do something
> }
>
> }
While not quite as versatile as what you have above, the following will
work if you want to do a regex every time:
$tmp = '\d\d\t \d';
while(<INFILE>) {
if (/$tmp/o) { # Note the 'o' here to save CPU cycles
do something; # Actually, this does nothing
}
}
Jordyn
|---------------------------------------------------------------|
|Jordyn A. Buchanan jordyn@bestweb.net|
|Bestweb Corporation http://www.bestweb.net|
|Senior System Administrator +1.914.271.4500|
|---------------------------------------------------------------|
------------------------------
Date: 22 Apr 1997 05:59:10 GMT
From: mcdowell@magicnet.net (cssm.com)
Subject: Name that OS(unix,nt,?) question.
Message-Id: <5jhk3e$ru6$1@comet2.magicnet.net>
Keywords: NT, unix, perl, os
How can one tell what Platform a perl script is being run on. I've seen
PERL scripts that check system files to see if a box is system V or
BSD, but I also have to deal w/ Windows NT as well.
Curious..
-Patrick.
patrick.mcdowell@tivoli.com
------------------------------
Date: Mon, 21 Apr 1997 19:46:49 -0700
From: "Charles F. Ritter" <critter@quack.kfu.com>
Subject: Re: Newbie Alert: Help! Netscape only sees my Perl script as an HTML file.
Message-Id: <335C2699.508559BF@quack.kfu.com>
Richard Schwinn wrote:
>
> I wrote a simple perl script which I can run through the perl
> interpreter but can't through Netscape. I've submitted the following to
> a newsgroup for help but thought you might have an insight or two as
> well:
This is a newsgroup.
> I've entered a simple program and loaded in my directory on our UNIX
> server. I can run the program through telnet by invoking PERL directly
> but I can't get Netscape to recognize the script as a PERL program.
> Netscape treats it like an HTML file and doesn't recognize the commands?
>
[big snip]
> Any ideas?
>
> Thanks
This doesn't have anything to do with your perl. It's a web server
configuration problem. How does a server differenciate html from cgi?
You have to tell it. RTFM and god bless.
--
Charles Ritter
------------------------------
Date: 22 Apr 1997 03:38:04 GMT
From: "Tammy Cotter" <cottert@sonic.net>
Subject: Re: No syntax errors, but still the thing won't run
Message-Id: <01bc4ecf$2112ac80$dce5c9d0@cottert>
Didn't work. Tried the extra \n in my sub success_html but still coming up
with error 500
Someone also suggested that I do a \@ when I name my variables. I don't
think I should because it's inside a ' 'not a " ". Am I right about this?
(Even still, I did try it but it didn't work).
Could my problem be occuring in my sub read_input? Should I substitute the
"@" in the incoming email address for "\@" ??
Or is it that I am suffering from PERLhiemers disease :-)
By the way - thanks to Randall Schwartz for his "Learing Perl" book and
Larry Wall for the language (and his humor) - It looks like a very cool
language. I am looking forward to adding my advice to this group someday
soon.
Script follows:
#!/usr/bin/perl
$mailprog ='/usr/lib/sendmail';
$domo='majordomo@lists.sonic.net';
$subject='subcribe powermail';
$success='http://www.lp-llc.com/powermail/success.htm';
$oops='http://www.lp-llc.com/powermail/oops.htm';
&read_input;
&success_html;
&send_mail;
sub read_input {
if ($ENV{'REQUEST_METHOD'} eq 'POST') {
# Get the input
read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
@pairs = split(/&/, $buffer);
foreach $pair (@pairs) {
($name, $value) = split(/=/, $pair);
}
}
else {&error;}
}
sub success_html {
print "Location: $success\n\n"; #success
}
sub send_mail {
# Open The Mail Program
{
open(MAIL,"|$mailprog -t");
print MAIL "To: $domo\n"; #majordomo
print MAIL "From: $email\n"; #new member
print MAIL "Subject: $subject\n\n"; # subject
print MAIL " $subject\n\n"; #body
close (MAIL);
}
}
sub error {
print "Location: $oops\n\n"; # it failed
}
------------------------------
Date: Tue, 22 Apr 1997 07:29:44 GMT
From: hbaker@netcom.com (Henry Baker)
Subject: Re: Ousterhout and Tcl lost the plot with latest paper
Message-Id: <hbaker-2104972329440001@10.0.2.1>
In article <5jgodk$nd7$1@news.utdallas.edu>, mharriso@utdallas.edu (Mark A
Harrison) wrote:
> Why are so many of the popular languages created not by language
> theorists but by people trying to accomplish some other task?
>
> (I think JO raised this last point in his MIT lecture.)
I'll take a shot at this one.
Most 'popular' languages started life as highly specialized (i.e., 'limited
scope') languages that had access to some peculiar library -- e.g., graphics,
type-setting, wimp, linear algebra (matlab), symbolic algebra (macsyma, etc.).
People then found out that any language with sufficient power (i.e., not
brain dead) was Turing complete, and the converts to these new languages
then discovered that they would do _more_ than 'just' graphics, type-setting,
etc., etc. Of course, many of these converts had been exposed to only one
language, and this language was so much better than that silly Fortran,
Pascal, (insert your favorite dog to kick here) language that had been forced
upon them in engineering/math/physics/.... school, that they touted it as the
next best thing to sliced bread.
The truth is that there isn't more than an ounce of spit in the differences
among most of these languages _with the exception of the specialized libraries
that they are hooked up to_, so most of this variation is non-productive.
There are major exceptions to this assessment, to be sure. The appearance
of soft/dynamic typing, garbage collection, EVAL, sophisticated data structures,
dynamically compiled/linked code, etc., etc., quickly separate the sheep
from the goats.
So the language theorists focus on the _library-independent_ issues such
as typing, data structuring, control structuring, etc., instead of on
building large numbers of specialized libraries. The ability of a language
to continue growing out of its original niche depends critically on this
more balanced view, but this view is seldom to be found in the initial
enthusiasm of creating the first Turing-capable interpreter for one's new
graphics/type-setting/... library.
The few languages that do manage to leave the premordial slime and move
onto dry land (Lisp, Prolog, Smalltalk, ML, etc.) are laughed at by those
still in the slime for sloughing off their specialized libraries, even
though by doing so, they can now do all of the specialized things from
not only their original area of expertise, but also many other areas, as well.
------------------------------
Date: Tue, 22 Apr 1997 09:09:17 -0700
From: Hans Suijkerbuijk <Hans.Suijkerbuijk@SD.BE>
Subject: Re: Perl and Access or Oracle
Message-Id: <335CE2AD.5584@SD.BE>
Maribeth Miguel wrote:
> =
> Does anyone know if Perl can access/update an Access or Oracle Database=
> and how(or a link to a site or book)?
> =
We use the ODBC.PM module and perl 5.001 on NT4.0 Server to access a
MS-ACCESS DB (and soon an ORCALE-database). You have to make an
ODBC-connection with your db. =
The Perl-code you need is:
$db=3Dnew Win32::ODBC("DSN=3Dname") || die "...";
$sql =3D "<an sql-statement>";
$db->$sql;
$db->FetchRow();
%hash =3D $db->DataHash;
etc ..
You can find the ODBC-module (with the documentation) at:
www.oasis.leo.org/cgi-bin/leo-peek/perl/_/ports/nt/misc/Win320dbc_v970208=
=2Ezip
Gert Fran=E7ois
consultant
SD-Infotec
Antwerp - Belgium
------------------------------
Date: 22 Apr 1997 07:22:12 GMT
From: pdemeyer@tmphard.univ-lr.fr
Subject: Problem with Oraperl...
Message-Id: <5jhov4$ofo@hpuniv.univ-lr.fr>
Hi folks !
My today dumb question :
Once upon a time, we had Oracle version 7.0.3 : oraperl scripts worked, no
problem.
BUT we recently upgraded to Oracle version 7.3.2.3 .
I tried an oraperl script (which worked before), and... it didn't work !
I updated all environment variables, for the user (who tries to launch the
script) and in the oraperl script. These environment variables are :
$ENV{LOGNAME} = "oracle";
ORACLE_BASE=/opt/oracle/app/oracle
ORATERMPATH=/opt/oracle/app/oracle/product/7.3.2.2/forms30/admin/resource
ORACLE_SID=gest
ORA_CSM_MODE=line
ORACLE_TERM=hp
ORA_NLS32=/opt/oracle/app/oracle/product/7.3.2.2/ocommon/nls/admin/data
ORACLE_HOME=/opt/oracle/app/oracle/product/7.3.2.2
sqlplus works well with the user, but in the oraperl script(toto.pl), when i
try to log in :
$lda = &ora_login("gest","test","passtest") || die "$ora_errstr";
i get the following error :
ORA-03113: end-of-file on communication channel at ./toto.pl line 26.
Could someone help ?? Pleeeeeeeeeaz !!
Thanx for reading
-------------------------------
Patrice
pdemeyer@cri.univ-lr.fr
------------------------------
Date: 22 Apr 1997 03:03:00 GMT
From: a00lcj00@elc012.nchc.gov.tw (Cheng Tyh Lin)
Subject: Regular expression with Hex code
Message-Id: <5jh9p5$jlr@cyrene.nchc.gov.tw>
Keywords: regular expression
Hi,
Could anybody tell me how to do this:
There are two strings as below. I am try to open a file, search for
whether the file content the following $a string(in hex, E0 stands for \xE0).
If it exists, substitute $a with $b.
$a = "E0003D00E1002B00E7002A00E300";
$b = "a=b+c*d";
(1) Which is the most convenient way to implement this job?
(2) Do I need to open this file in binmode?(This file is an executable
file produced by C++ language)
Please reply to my email: a00lcj00@nchc.gov.tw
Thanks.
------------------------------
Date: Mon, 21 Apr 1997 19:55:18 -0700
From: The Messiah <tm@sinnerz.com>
Subject: Re: They both suck! (was: Borland or Microsoft compilers ?)
Message-Id: <335C2896.573A@sinnerz.com>
Santiago Mediodia wrote:
> I cant understand why is people still using Microsoft or Borland to
> make projects. Just, if I see the size of an integer in my Pentium with
> Borland, it gives me 2 bytes so 16 bits, and isnt the size of the integer , the
> the size of the data bus? Something is wrong 'cause Linux gives me 4 bytes
> so 32 bits, and thats really the size of the data bus in a Pentium...
Well, the size of a LongInt is 32 bits, 4 bytes. Which is the size of
the data bus in a Pentium. Just because they're named the same thing
doesn't mean they are.
> Another one, Borland gives me restrictions when i ask for memory. Only 64
> k I think, but not it linux, you can ask for 1, 2 Megas, it doesnt matter
Only in 16-bit OSs. Borland Delphi 2.0 puts no restriction on memory
use. The 64K problem is well known among Windows 3.x programmers.
> Another one. Linux is free so, very cheap, Microsoft or Borland ....
Oy. You got me there. =o)
-----------
The Messiah
------------------------------
Date: Tue, 22 Apr 1997 09:27:38 +0100
From: Ben Hanson <benh@cristie.co.uk>
Subject: Re: They both suck! (was: Borland or Microsoft compilers ?)
Message-Id: <335C767A.3784@cristie.co.uk>
Jim Campbell wrote:
<SNIP>
> > It depends on the job. If they're doing Windows development, then
> > Microsoft and Symantec are probably their best bets, followed closely by
> > Borland with Watcom and Metaware trailing. For non-Windows app's, the
> > ordering would be different, but how different would depend on a lot of
> > different factors. IOW, there's no simple answer, only simple-minded
> > respondents...
Sod it, I'm going to write my own!
Ben
------------------------------
Date: Mon, 21 Apr 1997 15:40:00 -0400
From: Aaron Silver <silvera@psi.com>
Subject: Re: Two-Way Sockets in Perl
Message-Id: <335BC290.7E63@psi.com>
Paul S R Chisholm wrote:
>
> John Michael Pirie wrote:
> > I am setting up a simple client-server application in perl,
> > and am having difficulty with sockets. I have found many examples
> > of client-server applications, but have been unable to find
> > any where two-way communication takes place.
>
> I think I'm confused. Client-server applications usually involve two-way
> communications.
>
> The only difference between a client and a server is how each sets up
> its half of the connection. A client connects to a server port. A server
> listens to a server port, then accepts a connection. Once that's
> happened, the resulting socket on either end can be read from, written
> to, or both, in any order. (That's a big difference between a socket and
> a pipe.)
>
> The Blue Camel socket server example might be a little confusing, in
> that it makes STDIN and STDOUT both point to the socket, then invokes a
> routine that reads from STDIN and writes to STDOUT. (It's a great
> approach for debugging and reuse, though, since it lets you invoke the
> function with or without sockets.)
>
> --Paul S. R. Chisholm, AirMedia, Inc. (formerly Ex Machina)
> mailto:psrc@exmachina.com http://www.exmachina.com/~psrc
> I'm not speaking for the company, I'm just speaking my mind
Thanks for the response! The examples I have seen show a server that
once it accepts a connection it sends a string, and resets. The client
does the opposite, it connects, reads a string, and exits. I have yet
to see one that opens a connection, sends a string, then reads a string
through that same socket, and then either repeats or closes.
Unfortunately our system is running Perl 4.X so until I can get the
SA department to load Perl 5.002 I can't use the Net::Telnet module ;-(
I'll look for the Blue Camel book to see the example you pointed out.
If anyone else has code (4.X compatible ;-) I would appreciate it if
you could send it my way!
Thanks,
Aaron Silver
Senior Engineer
PSINet Customer Support
------------------------------
Date: Mon, 21 Apr 1997 19:59:48 -0600
From: Russell_Schulz@locutus.ofB.ORG (Russell Schulz)
Subject: Re: using "$var" considered harmful?! (was Re: Q: opening a file RW without deleting it.)
Message-Id: <19970421.195948.6X7.rnr.w164w@locutus.ofB.ORG>
[ thanks also to Douglas Seay who mailed and possibly posted more detail ]
tchrist@mox.perl.com (Tom Christiansen) writes:
>> no. even with the corrections posted (months ago, when this thread
>> first came up) I still didn't see it.
>
> Most of your analysis is a bit confused.
and that's all Tom quoted.
WHAT analysis? oh, in the bit he didn't quote?
>> of course, I wouldn't recommend passing "$var" to a nontrivial
>> routine anyway, because perl has no way to notice if you meant to
>> pass something by reference but instead passed it by value. (and
>> we all know that successful Perl programming requires avoiding
>> places where Perl doesn't give you any reasonable support.)
where's the confusion?
> [untested example deleted -- though even when I fixed the obvious
> error it only seemed to reinforce my point, re-quoted above.]
--
Russell_Schulz@locutus.ofB.ORG Shad 86c
------------------------------
Date: 22 Apr 1997 06:36:21 GMT
From: "Santiago Alvarez Rojo" <santiago@gambito.com>
Subject: Re: Web/database interface
Message-Id: <01bc4ee7$4c8dbae0$7131a8c0@sg059pcs>
Hi Michael,
you might check BBI home page at http://www.hermetica.com/technologia/DBI/
"DBperl is a database access Application Programming Interface (API) for
the Perl Language. The DBperl API Specification defines a set of functions,
variables and conventions that provide a consistent database interface
independent of the actual database being used." -- Tim Bunce
Hope this helps.
-----------------------------------------------------------------
Santiago Alvarez Rojo
santiago@gambito.com
http://www.gambito.com/santiago
PGP-key: http://gambito.com/santiago/pgp.txt
-----------------------------------------------------------------
Michael Meuser <meuser@cats.ucsc.edu> escribis en artmculo
<5j9p6o$1ds@darkstar.ucsc.edu>...
> Hello - I will be developing a web interface to query an MS SQL server
> v.6.5, I'm wondering if any of you have had experience doing this
> with perl, what tools you used, problems, solutions, and why you chose
> Perl over, say, java? Any help appreciated.
>
> Mike Meuser
>
>
------------------------------
Date: 8 Mar 97 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 8 Mar 97)
Message-Id: <null>
Administrivia:
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 341
*************************************