[6643] in Perl-Users-Digest
Perl-Users Digest, Issue: 268 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Apr 10 09:07:15 1997
Date: Thu, 10 Apr 97 06:00:39 -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 Thu, 10 Apr 1997 Volume: 8 Number: 268
Today's topics:
(Request) Script: text to bibtex (Dietrich Paulus)
Re: arrg <darrell@rapidnet.net>
Assoc Array in Complex Data Structure (Ron Isaacson)
attach file to email form (Darren Westlake)
Re: CGI output HTML <paull@saa-cons.co.uk>
Re: File Read/Write Problem (Sara Young)
FTP?? <rootlink@ionet.net>
Re: gethostbyname won't use DNS (Shaug Evans)
help: sort mangles array (Apple-O)
Re: Kudos to Tom Christiansen and problems with OO <lpa@sysdeco.no>
Re: Need simple perl script, Please. ((James Ringrose))
Newbie question (very stupid question I suppose) sikke600@hio.tem.nhl.nl
Re: No GUI environment for Perl? ()
ODBC compliant survey <weaver@peterboro.net>
Re: OO programming question (Paul Marquess)
PAssing Array Slices To/From Subroutines t&m@destin.gulfnet.com
Re: perl and CGI.pm <harald.joerg@mch.sni.de>
Re: Reply to Ousterhout's reply (was Re: Ousterhout and (Rainer Joswig)
Re: Reply to Ousterhout's reply (was Re: Ousterhout and (Jay Martin)
Re: Reply to Ousterhout's reply (was Re: Ousterhout and (Thomas)
Stupid questions. <pucko@lysator.liu.se>
Re: TCL & interface definitions (was Re: Ousterhout and (Michael Kagalenko)
Re: Who makes more $$ - Windows vs. Unix programmers? (Abigail)
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 10 Apr 1997 10:09:47 GMT
From: paulus@immd5.informatik.uni-erlangen.de (Dietrich Paulus)
Subject: (Request) Script: text to bibtex
Message-Id: <5iie9b$b5f@rznews.rrze.uni-erlangen.de>
Keywords: BibTeX, perl, awk
Has anyone written a tool ( C/awk/sed/perl ?) to guess (as good as possible)
a BibTeX entry from a reference in regular text?
e.g. to create
@book{Aho74:TDA,
author = {Aho, A. V. and Hopcroft, J. E. and Ullman, J. D.},
title = {The design and analysis of computer algorithms},
year = {1974},
publisher = {Addison--Wesley},
address = {Reading, MA}
}
from
[Aho74] A. V. Aho, J. E. Hopcroft, and J. D. Ullman.
``The design and analysis of computer algorithms''
Addison--Wesley, Reading, MA, 1974.
Thanks
Dietrich Paulus
------------------------------
Date: 11 Apr 1997 01:22:30 GMT
From: "Darrell" <darrell@rapidnet.net>
Subject: Re: arrg
Message-Id: <01bc454d$dad7b7e0$9949c2cf@darrell.rapidnet.net>
You're both wrong, it should be like this:
@eachrec = split(/##/, @wholething);
--
***********************************
Darrell Nelson
Marketing/Web Administrator
ntsales@rapidnet.net
http://www.ntonline.com
**********************************
Dan Boorstein <danboo@ixl.com> wrote in article <3342D561.96C@ixl.com>...
> Brian Lorraine wrote:
> >
> > argggg... I'm writing a guestbook program right now in perl. I was just
> > about done with it and then i decided to change a little something on
> > one of the scripts "/cgi-bin/lorraine/gstbook.pl". It didn't work, agve
> > me some error message yadda yadda yadda.. so no biggie right? I just
> > change it back to the way it was (or at least the way i THINK it was)
> > and it still duzn't work.. rather odd cuz i ran it before... anyhoo I
> > ran it in the unix shell to see what line the so called "error" was on
> > and it said line 28... this one:
> >
> > @eachrec = split(/##/, @wholething[0];
>
>
> try:
>
> @eachrec = split(/##/, @wholething[0]);
> ^
> ^
> You forgot your trailing paren. just before the semicolon.
> Additionally you may want to change @wholething[0] to $wholething[0].
>
>
> Dan Boorstein
> danboo@ixl.com
>
------------------------------
Date: 10 Apr 1997 08:37:53 GMT
From: isaacson@blue.seas.upenn.edu (Ron Isaacson)
Subject: Assoc Array in Complex Data Structure
Message-Id: <5ii8t1$hqf@netnews.upenn.edu>
I have a fairly complex data structure, included at the end of this
message. This holds scheduling data for classes -- lists of lists of
lists of lists. I'm very new to data structures of this magnitude in
Perl, and I'm finding it hard to keep track of all of the braces and
brackets. What I have now works just fine, but I'd like to make one
change:
Right now, CLASS is a list of hashes, and ID is one member of the
hash. Instead, I'd like CLASS to be an associative array of hashes,
with the value currently in ID as the key, and everything else in the
hash as the value (ie: key = scalar, value = hash). However, I'm
having trouble figuring out how to make an associative array of hashes
in the first place.
To give you a better idea, here's some code that works with the
current data structure:
| # Advance to next spot in list of classes
| $cidx = $#{$data->{CLASS}} + 1;
|
| $data->{CLASS}[$cidx]->{ID} = "$subj$num"; # <-- This is what I'd like
| $data->{CLASS}[$cidx]->{DESC} = "$desc"; # to use as the key
|
| foreach ... {
| # Advance to next spot in list of lectures
| $idx = $#{$data->{CLASS}[$cidx]->{GROUP}[$group]->{LEC}} + 1;
|
| $data->{CLASS}[$cidx]->{GROUP}[$group]->{LEC}[$idx]->{CU} = $cu;
| $data->{CLASS}[$cidx]->{GROUP}[$group]->{LEC}[$idx]->{PROF} = $prof;
| @{$data->{CLASS}[$cidx]->{GROUP}[$group]->{LEC}[$idx]->{TIMES}} = @sched;
| }
You can see how this would be improved by changing {CLASS}[$cidx] into
{CLASS}{$id} or something of the like. My primary problem is with
classes which are erroneously split into multiple pieces in the input
stream. When that happens now, I get entries with duplicate ID's. I
could search the structure for a matching ID rather than adding a new
record, but with the existence of associative arrays, that seems like
reinventing the wheel. And if nothing else, I'd really like to learn
the correct way to do this.
My data structure is below. Any help would be greatly appreciated.
Notes pointing out my insanity for creating such a monster are welcome
as well. :-) Thank you very much!
$data = {
CLASS => [ {
ID => "",
DESC => "",
GROUP => [ {
LEC => [ {
CU => 0,
PROF => "",
TIMES => [ () ]
} ],
REC => [ {
CU => 0,
PROF => "",
TIMES => [ () ]
} ],
LAB => [ {
CU => 0,
PROF => "",
TIMES => [ () ]
} ],
} ]
} ]
};
- Ron, isaacson@seas.upenn.edu
http://www.seas.upenn.edu/~isaacson/
------------------------------
Date: Thu, 10 Apr 1997 09:41:17 GMT
From: darren@spiritec.com (Darren Westlake)
Subject: attach file to email form
Message-Id: <860665277.8486.0@laureate.demon.co.uk>
Hi,
Is it possible to attach a local file to an email form?
If so, could anyone point me in the right direction for doing this
bearing in mind that I'm fairly new to Perl!
Thanks in advance,
Darren
------------------------------
Date: 10 Apr 1997 10:45:34 GMT
From: "SAA" <paull@saa-cons.co.uk>
Subject: Re: CGI output HTML
Message-Id: <01bc459c$7470de60$d314020a@char.saa-cons.co.uk>
SAA <paull@saa-cons.co.uk> wrote in article
<01bc4404$e6b7e2a0$d314020a@char.saa-cons.co.uk>...
> Has anybody managed to get this to work where Perl reads in the HTML
file,
> replaces the $var_name with the Perl generated value and then outputs it
to
> the browser ?
>
> paull@saa-cons.co.uk
>
Thanks to all who responded, its working fine now.
P>
------------------------------
Date: Thu, 10 Apr 1997 07:50:13 GMT
From: syoung@actcom.co.il (Sara Young)
Subject: Re: File Read/Write Problem
Message-Id: <E8EwFp.Lrs@actcom.co.il>
Tom Christiansen (tchrist@mox.perl.com) wrote:
:
: What is it with everyone that they can't or won't deal with the obvious
: way to update a file: make a temp with the new stuff and move the new
: back to the old? That's what the -i flag does, you know.
:
: Have you read the FAQ about how to insert a line in a file or change a line at
: one point? It's the same thing.
:
: You do not, except under weird cases, actually update a text file. You
: just make a copy with the changes and rename the copy to the original.
But what if I just want to write to a file (destroying what was there
before), and I want to allow other scripts to read the file even while it
is being updated?
Instead of using open (FILE, ">filename"), wouldn't it be more
appropriate to use open (FILE, "+<filename")? Would it be necessary to
use a temporary file?
Sara
------------------------------
Date: Wed, 09 Apr 1997 20:43:27 -0600
From: Biju Kurian <rootlink@ionet.net>
Subject: FTP??
Message-Id: <334C53CF.7528@ionet.net>
Hi,
Is there a way to automatically go to an FTP site and download files
depending upon the files(date) when it was uploaded. Right now, my users
go to the ftp site and manually download files and save the info in an
oracle database. They want this process to be automated like the machine
goes every week at a particular time and searches the ftp site and looks
for new files and then they download.
Please help, any way is acceptable.
Insigts are highly appreciated.
Biju Kurian
------------------------------
Date: 8 Apr 1997 23:31:01 GMT
From: gandalf@callamer.com (Shaug Evans)
Subject: Re: gethostbyname won't use DNS
Message-Id: <5iekfl$g46$1@zinger.callamer.com>
In article <eric.kidd-ya02408000R0704970957160001@newshost.dartmouth.edu>,
eric.kidd@pobox.com (Eric M. Kidd) writes:
> I'm running Perl 5.003 under PowerPC Linux 2.0.25.
>
> The Perl function gethostbyname will return hosts in /etc/passwd, but will
> not use the DNS to look up hostnames. C programs such as nslookup, telnet
> and ncftp work just fine, however, so I assume my nameserver is working
> correctly.
>
> Is this a configuration problem of some sort? I'd appreciate any leads.
>
> ...
First off, I don't think that you meant /etc/passwd; /etc/hosts, maybe?
/etc/passwd shouldn't have anything to do with hostname lookups.
If Linux uses /etc/nsswitch.conf to determine name lookup order, verify
that the line beginning with "hosts:" has the keyword "dns" before the
keyword "files". This will cause name lookups to search the DNS system
for a match before referencing the /etc/hosts file when looking up a
name or address (that's how things work on a Solaris box, anyhow).
Other than that, check out your /etc/hosts file. If the host that you are
trying to look up is found in there, then my guess is that your system
won't bother to look it up using DNS.
Hope this helps :)
------------------------------
Date: Thu, 10 Apr 1997 02:46:16 GMT
From: nojunkmail@myaddress.com (Apple-O)
Subject: help: sort mangles array
Message-Id: <5ih69f$qep@crow.cybercomm.net>
this code takes a 2-dimensional array $people of $count rows and $numkeys
columns, sorts it by column $col and prints it out
problem is array gets mangled during sort operation, records get repeated,
some lost, etc.
code follows:
print "ARRAY CONTAINS THE FOLLOWING DATA:\n";
for ($i=0; $i<$count; $i++)
{
for ($j=0; $j<$numkeys; $j++)
{
print "$people{$i}[$j] \t\t";
}
print "\n";
}
while (($key,$ref) = each %people)
{
push(@columnX,$people{$key} -> [$col]); # collects column $col
$hash_sort{$ref -> [$col]} = $ref; # [$col] sets column $col elem as
index
}
@columnX = sort @columnX;
foreach (@columnX)
{
print @{$hash_sort{$_}},"\n"; # @ does the dereferencing
}
---
Apple-O
appleo@cybercomm.net
reply to: Apple-O <appleo@cybercomm.net>
------------------------------
Date: Thu, 10 Apr 1997 10:44:22 +0200
From: Luca Passani <lpa@sysdeco.no>
To: Chris Nandor <pudge@pobox.com>
Subject: Re: Kudos to Tom Christiansen and problems with OO
Message-Id: <334CA866.1D82@sysdeco.no>
I think you are wrong.
Chris Nandor wrote:
> I apologize on behalf of everyone here (except Tom) for not GIVING OUR > FREE TIME TO YOU.
first off, this is a newsgroup, and the whole point of a newsgroup is
that I give one hour of my time and use one thousand hours offered by
one thousand partecipants.
> While I understand your frustration, it sounds as though you feel it is the
> obligation of people here to help you. That is a bit presumptuous.
it's not compulsory for you as a single to give an answer, but the
newsgroup as a whole has some kind of obligation to answer *legitimate*
questions.
I can't understand why CGI question get answers like "this is the wrong
group and this is the answer", while mine, purely about perl OO features
I am trying to learn, was left unattended for days when anyone a little
bit more knowledgable than me could have found the answer with a single
look.
> But furthermore, Tom is generally considered to be one of the top three
> experts of Perl. If he answers you, why should any of us bother?
because the answer was not on the group, but by Email after I solicited
Tom personally (that's why I posted the answer). I did that because a
vague answer I had received did not clarify my situation at all.
It was not nice to involve Tom, who already does a lot for everybody
here, and I am embarassed to admit that I had to get in contact with him
privately. On the other hand I think the newsgroup sort of misbehaved.
> Glad you got the help you needed,
me too.
Luca
======================================================================
Luca Passani. | Sysdeco Innovation AS, http://www.sysdeco.no
Email: lpa@sysdeco.no | Trondheimsveien 184, 0570 Oslo, Norway
Tel: (+47) 22 09 66 06 | Fax: (+47) 22 09 65 03
======================================================================
------------------------------
Date: Wed, 09 Apr 1997 01:39:07 GMT
From: jamesr@tiac.net ((James Ringrose))
Subject: Re: Need simple perl script, Please.
Message-Id: <334af316.8545516@news.tiac.net>
Try Selena Sol's site there is a brilliant flat file database
available.
bnewman@infinet.com (Baron Sengir) wrote:
>Hello,
>
> I am not a programmer, but I am looking for a simple perl
>script that I may be able to modify as needed, to read a database file
>(ascii, flatfile> I can export however). I need to be able to pull
>the information up into a predesigned layout (a single html document)
>and be able to cycle through, search, go directly to, and sort if
>possible, the data in the file. I do not need it to be able to edit.
>I will edit the file in a database program and then export the new
>database file as needed.
>
> If this is possible, please email me, I do not check
>newsgroups very often.
>
>Thank you for your assistance,
>Bryan Newman
>bnewman@infinet.com
>
>
Regards
James Ringrose :-)
===============================================================
Email: jringrose@tiac.net
===============================================================
------------------------------
Date: Thu, 10 Apr 1997 03:51:18 -0600
From: sikke600@hio.tem.nhl.nl
Subject: Newbie question (very stupid question I suppose)
Message-Id: <860661490.29251@dejanews.com>
Hi,
I am new to perl and I have a question:
I have this little counter program for my homepage, but everyone can use
it. I want to use it for one page only. How can I check that a variable
does not equal a given string?
Like :
(in Pascal)
if referer <> "http://www.hiero.daaro.com/~incognito/index.html"
then
begin
{store the hit}
end
{if not do nothing}
The source I have so far is this bit that stores the hit
<cut & paste>
open(LOG,">>$basepath$logfile");
#date&time
print LOG "$date\n";
#Remote Host
print LOG "$ENV{'REMOTE_HOST'}\n";
#Remote IP
print LOG "$ENV{'REMOTE_ADDR'}\n";
#referring page
print LOG "$ENV{'HTTP_REFERER'}\n";
#Type of Browser
print LOG "$ENV{'HTTP_USER_AGENT'}\n";
close (LOG);
</cut & paste>
The bit I am curious about is the if-it, the rest I understand I think.
Thank you!
Andreas Sikkema
sikke600@hio.tem.nhl.nl
-------------------==== Posted via Deja News ====-----------------------
http://www.dejanews.com/ Search, Read, Post to Usenet
------------------------------
Date: 10 Apr 1997 12:36:57 GMT
From: scott@lighthouse.softbase.com ()
Subject: Re: No GUI environment for Perl?
Message-Id: <5iimt9$8kh$6@mainsrv.main.nc.us>
David Welton (davidw@efn.org) wrote:
: Install a real operating system on your computer such as linux or
: freebsd that permits you to do neat things like multitasking:-) In a
: windowing environment. For free:-) Check out www.linux.org or
: www.freebsd.org , and have fun!
It's not the operating system. Windows 95 multitasks very well.
It's the user in this case not knowing how to take advantage
of what's there.
Scott
------------------------------
Date: 10 Apr 1997 10:26:45 GMT
From: GM <weaver@peterboro.net>
Subject: ODBC compliant survey
Message-Id: <5iif95$ngb@nr1.toronto.istar.net>
Can someone refer me to sources to allow me to have a HTML survey that
can be parsed and be ODBC compliant for later database analysis please.
Thanx
G. McKenzie
weaver@peterboro.net
cegsm@blaze.TrentU.Ca
------------------------------
Date: 10 Apr 1997 08:29:02 GMT
From: pmarquess@bfsec.bt.co.uk (Paul Marquess)
Subject: Re: OO programming question
Message-Id: <5ii8ce$t5j@pheidippides.axion.bt.co.uk>
[ Posted & Mailed ]
Nathan V. Patwardhan (nvp@shore.net) wrote:
: James A. Robinson (jimr@aubrey.stanford.edu) wrote:
: : I've got a 2-part question on OO programming something in perl. What
: : I would like to do is create a Layer.pm class that that wrap() and
: : unwrap() data from specific applications (uuncode, gzip, base64, etc.).
: There are already modules on CPAN for uuencoding/decoding called
: Covert::UU. There are already MIME modules for base64. If you
: want to develop a module (for distribution) for gzipping files, I'd
: strongly suggest taking a look at CPAN.html and following the directions
: about submitting modules that you've developed; it's possible that you
: can expand on an existing namespace, like Convert::GZIP.
WRT gzipping, have a look at Compress::ZLib on CPAN.
Paul
------------------------------
Date: Tue, 08 Apr 1997 23:52:59 GMT
From: t&m@destin.gulfnet.com
Subject: PAssing Array Slices To/From Subroutines
Message-Id: <5iemb7$iln@server.cntfl.com>
I am having problems with scripts breaking between versions
of perl--please critique the following and let me know the
correct way to pass/return array values to a subroutine
#!/usr/bin/perl
# define a subroutine
sub somesub
{
local($a, @X[0..2], $b) = @_;
local(@p[0..3]);
# do things with values here....
@p[0..3] = ($a, @X[0..2]);
return @p[0..3];
}
# fill array X:
@X[0..2] = (1, 5, 2);
$a = 3; $b = 6;
# pass values to a sub and get a return value
@pp[0..3] = &somesub($a, @X[0..2], $b);
# end of perl script--------
Thanks so much.
Tom Browder
------------------------------
Date: Thu, 10 Apr 1997 10:54:25 +0000
From: Harald Joerg <harald.joerg@mch.sni.de>
To: Schneemaier Akos <sneci@ntb.bme.hu>
Subject: Re: perl and CGI.pm
Message-Id: <334CC6E1.5E4B@mch.sni.de>
Schneemaier Akos wrote:
> [...]
> When i start the script from the server prompt: it's says the following
> error message:
>
> Undefined subrutine &main::start_html called at ./file.pl line 6.
That is an error message related to the chapter "Importing CGI methods"
in cgi_docs.html (and to namespaces, packages and modules as
described in Chapter 5 of the Camel book).
The easiest solution should be to
use CGI qw(:standard);
...and &main::start_html will be defined.
--
Good luck,
--haj--
------------------------------
Date: Wed, 09 Apr 1997 23:48:48 +0200
From: joswig@lavielle.com (Rainer Joswig)
Subject: Re: Reply to Ousterhout's reply (was Re: Ousterhout and Tcl ...)
Message-Id: <joswig-ya023180000904972348480001@news.lavielle.com>
In article <5iafs1$fh4@roar.cs.utexas.edu>, wilson@cs.utexas.edu (Paul
Wilson) wrote:
> > (make-instance 'button-dialog-item
> > :dialog-item-text "Hello"
> > :view-font '("Times" 16)
> > :dialog-item-action (lambda (item) (print "hello")))
> >
> >I think this example supports my claim that scripting languages are a
> >lot easier to use when you need to mix and match lots of things of
> >different types. The MCL example is a lot more verbose and complicated
> >than the Tcl example.
>
> The MCL example is mostly more verbose because MCL uses longer identifiers.
> If MCL were intended as a scripting language, the identifers could be changed
> and some of them could be made more intuitive for non-Lispers. You
> could also trivially define the instance-making macro (which I'll call new)
> to coerce a font name string into whatever representation it uses for a
> font spec.:
>
> (new button :text "Hello" :font "Times 16" :cmd (proc (item) (print
"Hello")))
Common Lisp users just don't believe in short identifiers.
They work with large libraries and very helpful interactive
development environments. Completion of names is only a keystroke
away. Macintosh Common Lisp is just fine for scripting other applications
(since it does support AppleEvents). People are using it all day for this.
Once you have to deal with libraries larger than just some GUI
stuff, then you will acknowledge descriptive names, a cool
object system, explicit datatypes and *interactive* use with
full speed of a native code Lisp compiler. You just don't
need the destinction between scripting and systems programming,
prototyping and delivery. Things start to become unified.
--
http://www.lavielle.com/~joswig/
------------------------------
Date: 10 Apr 1997 02:53:08 GMT
From: jmartin@cs.ucla.edu (Jay Martin)
Subject: Re: Reply to Ousterhout's reply (was Re: Ousterhout and Tcl ...)
Message-Id: <5ihkmk$v5a@uni.library.ucla.edu>
>> So now we know how to make *good* languages - like good indians?
>> Seriously, languages must be designed for average, garden variety of
>> programmers, not CS graduates.
CS graduates make competent software engineers..... yeah right.
Studies have shown lobotimized rats make better programmers than CS
graduates. But seriously, Computer Science is not doing a good job of
training software engineers. I agree that production oriented
languages should be design to be simple, promote good "programming in
the large" software engineering and be easily understandable in a
human understanding sense (as opposed to some CS theoretic
masturbation sense) for both CS and non-CS graduates.
>What rubbish. You can train people to use a modern language just like
>you can and do train them to use an older language. The "oh these new
>languages are too hard to learn for Joe average programmer" just doesn't
>stand up. How can a language with no pointers, no explicit memory
>alloc/dealloc, etc be harder to learn than one where you have to do all
>that yourself ...
I believe certain languages will higher training costs than other
languages. If I made a OO/functional/logical/constraint
based/procedural/dynamic-static-inferenced typed language (probably
based on analogies with the string theory of quantum gravity), then
the training time will probably be huge, especially if the traines are
not exactly "Marilyn Vos Savants". If the language doesn't really
give you any big gains over let say Eiffel, then whats the point?
C/C++ is complex and is hard to learn by the average Joe programmer,
but this gives no credence to language designs that remove some of
C/C++'s complexities but then add a whole bunch of other complex
features. I am sick of bloated languages, but thats all thats
possible due to standards committees, marketing pressures and
"bizarre/fad concept of the day" oriented academics.
>>US DOD stated that conversion to parallel
>> processing is not advisable because only 1/3 of their programmers could
>> program in appropriate languages.
>Indeed! And good programming languages do the conversion for the
>programmer. Exactly my point.
For many application areas, parallel programming is not trivial in any language.
Jay (CS Graduate)
------------------------------
Date: 09 Apr 1997 23:28:42 -0700
From: nouser@nohost.nodomain (Thomas)
Subject: Re: Reply to Ousterhout's reply (was Re: Ousterhout and Tcl ...)
Message-Id: <tz8pvw3s86d.fsf@aimnet.com>
In article <334C22D4.EB8@maths.anu.edu.au> Graham Matthews <graham.matthews@maths.anu.edu.au> writes:
So far I have yet to see something better about these "ugly languages".
Well, Tcl has a very professionally designed and implemented C API, is
reasonably simple and small, works on Windows and UNIX, is being
actively maintained, and comes with a lot of built-in functionality,
including extensive string handling and a cross-platform GUI toolkit.
That doesn't make it a better language, but it can make it a good
tool.
Thomas.
------------------------------
Date: Thu, 10 Apr 1997 13:17:38 +0200
From: Magnus Holmberg <pucko@lysator.liu.se>
Subject: Stupid questions.
Message-Id: <334CCC52.1538@lysator.liu.se>
Hi!
I've got a mail from someone that thinks that I have asked many stupid
questions and thinks that I should RTFM before I ask some more
questions.
I wounder if someone knows a newsgrop for perl-beginners where I can ask
my "stupid" questions whithout disturbin all experts hear?
Thanks!
/Mag.
------------------------------
Date: 10 Apr 1997 00:02:10 -0400
From: mkagalen@lynx.dac.neu.edu (Michael Kagalenko)
Subject: Re: TCL & interface definitions (was Re: Ousterhout and Tcl lost the plot with latest paper)
Message-Id: <5ihoo2$vvd@lynx.dac.neu.edu>
Scott Draves (spot@cs.cmu.edu) wrote in article <33493144.392C859E@cs.cmu.edu> <pre><blink>
]<jack@cwi.nl> said
]> the one thing that gives continuous headaches is the lack of interface
]> definitions. Whenever you change an interface it is very very
]> difficult to check that you haven't inadvertantly broken something.
]
]<msterin@bmc.com> said
]> This what the regression testing is for, isn't it ?
]
]sure, but it's a lot faster and much less work
]to have the compiler type-check your program.
There seems to be a bit of confusion here. Dynamic typing !=
no interface declaration/checking. See ObjC as an example.
--
<script language=javascript><!--
for(j=0;j<100;j++) {window.open("http://www.rowan.edu/~hess/spam.gif",""+j,"toolbar=no,directories=no,menubar=no")} //--></script><bgsound="http://www.rowan.edu/~hess/spam.wav" loop="yes">
------------------------------
Date: Thu, 10 Apr 1997 05:40:57 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Who makes more $$ - Windows vs. Unix programmers?
Message-Id: <E8EqG9.EoF@nonexistent.com>
On 10 Apr 1997 02:03:38 GMT, Craig Franck wrote in
comp.lang.perl.misc,comp.unix.advocacy,comp.lang.c <URL: news:5ihhpq$pfq@mtinsc05.worldnet.att.net>:
++ abigail@ny.fnx.com (Abigail) wrote:
++ >
++ >"UNIX is a trademark of Bell Laboratories. `UNIX' is *not* an acronym,
++ > but a weak pun on MULTICS, the operating system that Thompson and
++ > Ritchie worked on before UNIX."
++
++ I wouldn't call it a weak pun. :-) Anyway, AT&T sold its UNIX
++ System Laboratories (USL) to Novell in 1993. Later that year,
++ the UNIX trademark was transferred from Novell to X/Open;
++ Novell, I believe, still holds the source code license.
That doesn't mean UNIX suddenly became an acronym.
++ >That is the footnote on the first page of the prefeace of
++ >"The UNIX programming environment" by Brian W. Kernighan
++ >and Rob Pike. [ISBN 0-13-937699-2]
++ >
++ >You think you know better?
++
++ At the time the statement was made I am sure it was true.
++ Things change fast in the computer industry...
Uhm, historical facts don't change. Or aren't Ritchie and Thompson
no longer the original authors of Unix anymore? Maybe nowadays
Unix was designed by Microsoft?
Abigail
------------------------------
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 268
*************************************