[8846] in Perl-Users-Digest
Perl-Users Digest, Issue: 2463 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Apr 30 10:07:21 1998
Date: Thu, 30 Apr 98 07:00:48 -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, 30 Apr 1998 Volume: 8 Number: 2463
Today's topics:
Re: 1701 days hath September (was: Re: rename funciton) (Mark-Jason Dominus)
Re: 1701 days hath September (was: Re: rename funciton) (I R A Aggie)
Re: 4 digit year and localtime (Andrew M. Langmead)
Re: Bill Gates should be invited to O'Reilly's "Free So <drew_csillag@geocities.com>
Re: Bill Gates should be invited to O'Reilly's "Free So <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Re: Date of last change of any file <quednauf@nortel.co.uk>
Re: Grabbing a webpage with Perl (with https) <quednauf@nortel.co.uk>
group moderation -cgi script <email@in.the.sig>
Re: Helping each other (was: Credit Card Verification) <bmb@ginger.libs.uga.edu>
how quickly can you unpack your shorts ?! <dnac-db@rbgkew.org.uk>
Re: how quickly can you unpack your shorts ?! <cnwetzel@linguistik.uni-erlangen.de>
Re: http Reg Exp (Andrew M. Langmead)
Re: Ongoing E-Mail flood by mikes@activestate.com <quednauf@nortel.co.uk>
Re: Ongoing E-Mail flood by mikes@activestate.com <grinch@whoville.com>
Re: pass Hash from C to Perl (Andrew M. Langmead)
Pattern Matching <angelo_sirigos@spamoff.medscape.com>
Re: Pattern Matching <angelo_sirigos@spamoff.medscape.com>
Re: PC-based editors for Perl? scott@softbase.com
Re: Perl and OLE/COM on UNIX nick@xyvision.com
Re: Perl for Win32 not writing to file <gilberto@locaweb.com.br>
Re: Perl vs. Java scott@softbase.com
Re: Perl vs. Java (Jeff McCreary)
Re: Perl/Wall lingo question <boys@aspentech.com>
Re: SMTP and sockets <Tony.Curtis+usenet@vcpc.univie.ac.at>
visual basic replacement <frankie@etsetb.upc.es>
Re: You people want Perl to be popular? <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 30 Apr 1998 09:21:53 -0400
From: mjd@op.net (Mark-Jason Dominus)
Subject: Re: 1701 days hath September (was: Re: rename funciton)
Message-Id: <6i9tth$ddh$1@monet.op.net>
Keywords: amphetamine Jakarta Kelly toenail
In article <3547EDD6.2BBE@juicepigs.com>,
Bob Trieger <sowmaster@juicepigs.com> wrote:
>For instance, where would this thread be on a moderated group?
Exactly the same place it is now.
------------------------------
Date: Thu, 30 Apr 1998 09:43:40 -0500
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: 1701 days hath September (was: Re: rename funciton)
Message-Id: <fl_aggie-3004980943400001@aggie.coaps.fsu.edu>
In article <3547EDD6.2BBE@juicepigs.com>, Bob Trieger
<sowmaster@juicepigs.com> wrote:
+ Moderation = censorship in my eye and all censorship is evil.
Fine. No one will force you to post in the moderated newsgroup.
Also, you labor under mistaken idea that that your "Freedom of Speech"
is protected in UseNet. Nothing could be further from the truth. A
significant chunk of the participating servers around the world are
_privately_owned_, and as such, your posts exist there at the pleasure
of the news.administrator.
If it where true, tho, these newsgroups would have been buried years
ago in spam, binary postings, cascades and various other forms of
abuse that would likely enjoy "Freedom of Speech" protections.
+ c.l.p.m is
+ a community and we don't need some type of large government telling us
+ what is ok to post and what is not.
That's why c.l.p.moderated is going to come up for a vote shortly.
Seperate entity. You can stay and spoonfeed the newbies, if you like.
+ We can all do that ourselves. For
+ instance, where would this thread be on a moderated group?
In the trash can, or alt.flame, where it belongs?
James - since it has little relevance to perl, the language, or even
perl, the culture...
--
Consulting Minister for Consultants, DNRC
The Bill of Rights is paid in Responsibilities - Jean McGuire
To cure your perl CGI problems, please look at:
<url:http://www.perl.com/CPAN-local/doc/FAQs/cgi/idiots-guide.html>
------------------------------
Date: Thu, 30 Apr 1998 13:28:05 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: 4 digit year and localtime
Message-Id: <Es8Aqt.1Jv@world.std.com>
kevin scott <kevscott@juno.com> writes:
>Is there a way to get perl to return a 4 digit year from the operating
>system?
Since the localtime function is documented to return the year minus
1900 (which is not the same as the year modulo 100) it will return a
four digit year in 2900, as long as the people who make operating
systems and C libraries make an appropriate sized time_t.
--
Andrew Langmead
------------------------------
Date: Thu, 30 Apr 1998 08:52:28 -0400
From: Drew Csillag <drew_csillag@geocities.com>
Subject: Re: Bill Gates should be invited to O'Reilly's "Free Software Summit" (was Re: RMS should be invited to O'Reilly's "Free Software Summit")
Message-Id: <3548740C.9929FE0F@geocities.com>
Frank Sweetser wrote:
>
> Oleg Dulin <dulino@ulticom.nvo.com> writes:
>
> > > I keep imagining a musical piece called Dueling Bootsectors...
> >
> >
> > Yeah... (defun question(To-be) (OR (To-be (NOT To-be))))
>
> heh... perfer perl myself...
>
> sub question{
> 2*b || ! 2*b;
> }
>
Or Python, my drug of choice:
def question():
return 2*b or not 2*b
------------------------------
Date: Thu, 30 Apr 1998 06:32:30 -0700
From: "Creede Lambard" <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Subject: Re: Bill Gates should be invited to O'Reilly's "Free Software Summit" (was Re: RMS should be invited to O'Reilly's "Free Software Summit")
Message-Id: <6i9ugc$jo3@bgtnsc03.worldnet.att.net>
Drew Csillag wrote in message <3548740C.9929FE0F@geocities.com>...
>Frank Sweetser wrote:
>>
>> Oleg Dulin <dulino@ulticom.nvo.com> writes:
>>
>> > > I keep imagining a musical piece called Dueling Bootsectors...
>> >
>> >
>> > Yeah... (defun question(To-be) (OR (To-be (NOT To-be))))
>>
>> heh... perfer perl myself...
>>
>> sub question{
>> 2*b || ! 2*b;
>> }
>>
>Or Python, my drug of choice:
>def question():
> return 2*b or not 2*b
I hope I have this syntax right. It's been a long time . . .
: question b 2 * dup not or ;
------------------------------
Date: Thu, 30 Apr 1998 13:19:07 +0100
From: "Frank L. Quednau" <quednauf@nortel.co.uk>
Subject: Re: Date of last change of any file
Message-Id: <35486C3B.8D635BBC@nortel.co.uk>
Arne Steinbacher wrote:
> Hello ,
> how can I find out the date of the last change of any file ?
>
> Thanks.
Na, es geht ja doch :) See your German outgoings...
--
____________________________________________________________
Frank Quednau
Phone: +44 (0)1279 402447
http://www.surrey.ac.uk/~me51fq MailTo:F.L.Quednau@bnr.co.uk
____________________________________________________________
------------------------------
Date: Thu, 30 Apr 1998 13:24:10 +0100
From: "Frank L. Quednau" <quednauf@nortel.co.uk>
Subject: Re: Grabbing a webpage with Perl (with https)
Message-Id: <35486D69.959AB953@nortel.co.uk>
Gisle Aas wrote:
> "Greg Hassan" <greg@hassan.com> writes:
>
> > Martien Verbruggen wrote in message <6i5o7t$l6s$4@comdyn.comdyn.com.au>...
> > >In article <6hqb8s$nal$1@venus.mcs.net>,
> > > les@MCS.COM (Leslie Mikesell) writes:
> > >
> > >> Is there anything free that will grab a page via https? Or a way
> > >> to control a browser that could do it?
http://abiglime.com/webmaster/articles/cgi/111197.htm
Check out this URL, it talks about a script to ask yahoo to give it links. I
think it's pretty cool, and it was quite helpful for me to figure out how to do
such things.
--
____________________________________________________________
Frank Quednau
Phone: +44 (0)1279 402447
http://www.surrey.ac.uk/~me51fq MailTo:F.L.Quednau@bnr.co.uk
____________________________________________________________
------------------------------
Date: 30 Apr 1998 10:56:16 GMT
From: Robert L. <email@in.the.sig>
Subject: group moderation -cgi script
Message-Id: <6i9lcg$j39@news-central.tiac.net>
Hi,
I'm looking for a cgi script that can be used to moderate a
news group or a mailing list through the www.
Here are my ideas on how this should work:
One of the moderators accesses a page that requiers a password.
The script reads a mailbox, checks the amount of mails, checks that
none of the messages exceed a certain size limit, takes the first five
messages from the mailbox and makes an html page out of them. Each of
the mails is separated by a bar, under each there is a form that
allows the moderator to add a comment, as well as chose from three
options: accept, reject (return to sender), forward to the next moderator
for a second opinion. No matter what option is chosen, the comment is
added to the mail. At the buttom of the page there is a send button.
When the moderator clicks on the button, the script processes the
form, adds text and appropriate headers when needed (in case the mail
was accepted), forwards emails to appropriate destinations, asks whether
the moderator would like to process the next five emails (should also
give a number of emails left).
The script should allow an unlimited amount of moderators, and keep
track of date, time, mails accepted and who processed them (just in
case someone keeps on screwing up and his access has to be revoked),
and have a different user name and password for each moderator.
Well, that's my ideal script, but of course anything that works would do.
:)
This would allow us to have an unlimited number of moderators. I know
there are already listservers that, using some kind of a round-robin
system, can do this also. There is a problem with those however,
mail has to sit in someone's box until that person is ready to process
it.
With moderation through www, the mail simply waits in a central place
for the next available moderator, is sent in the right order, and with
say...10 moderators wouldn't have to wait longer then aprox. 3 hours.
Has anyone seen anything like this? If not, could someone write this?
This is for non-profit use, and I would imagine a lot of groups/mailing
lists could use something like this (unless ofcourse there are better
solutions I'm not aware of.)
Thanks for any help,
Robert L.
robertl(a)tiac.net
------------------------------
Date: Thu, 30 Apr 1998 08:54:35 -0400
From: Brad Baxter <bmb@ginger.libs.uga.edu>
Subject: Re: Helping each other (was: Credit Card Verification)
Message-Id: <Pine.A41.3.96.980430084819.75664A-100000@ginger.libs.uga.edu>
Can't resist sharing my second favorite (after the one below):
A couple are watching a dog typing away at a workstation. The man
says to the woman, "Oh, he's not that smart. He won't name his files
consistantly, he never backs up his hard drive and he drools all over
the keyboard."
On Wed, 29 Apr 1998, Tom Phoenix wrote:
[snip]
> (Perhaps you didn't notice the smiley.) That was an allusion to a famous
> cartoon from The New Yorker: Two dogs are at a computer, and the one at
> the keyboard is saying, "On the Internet, no one knows you're a dog."
>
> The point being, of course, that we can't pre-judge you on your skin
> color, your cool clothes, your species, or your age. We see only how you
> behave as viewed through a stream of data. Being 12 years old is simply
> not relevant here. Anyone on Usenet for any length of time will meet up
> with an adolescent who will earn respect by acting in an adult fashion.
> And you'll certainly meet up with any number of adults who will lose
> respect by acting in a childish fashion! :-)
[snip]
> I want you to know that I create nice things like this because it
> pleases the Author of my story. If this bothers you, then your notion
> of Authorship needs some revision. But you can use perl anyway. :-)
> - Larry Wall, in the perl README file
>
> --
> Tom Phoenix Perl Training and Hacking Esperanto
> Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
---
Brad Baxter, UGA
------------------------------
Date: Thu, 30 Apr 1998 11:56:21 GMT
From: "Lion" <dnac-db@rbgkew.org.uk>
Subject: how quickly can you unpack your shorts ?!
Message-Id: <Es86IJ.BFt@news.rbgkew.org.uk>
I'm trying to speed up some code that processes a large (50MB) binary file:
..open file etc...
for ($i=0,$i<1000;$i++){
$byte_count = read (IN, $buffer, 5000); # read a 5K chunk
push (@array, map (hex($_), unpack (("H2" x 5000), $buffer)));
....do things with array data....
@array = (); # clear the array
}
...close file etc....
most of the time in the loop is spent unpacking data. Can anyone suggest
something that would achieve the same thing but more quickly?
Currently takes about 3-4 mins.
thanks
Tony
p.s. I can't read the whole 50MB of data at one time because I don't have
enough memory.
------------------------------
Date: Thu, 30 Apr 1998 14:51:02 +0200
From: Christian Wetzel <cnwetzel@linguistik.uni-erlangen.de>
Subject: Re: how quickly can you unpack your shorts ?!
Message-Id: <354873B6.516C@linguistik.uni-erlangen.de>
Lion wrote:
>
> I'm trying to speed up some code that processes a large (50MB) binary file:
> push (@array, map (hex($_), unpack (("H2" x 5000), $buffer)));
Shouldn't do the following the same, but without the extra
map/hex loop?
push (@array, unpack ("C" x 5000, $buffer));
Or am I misunderstanding the pack/unpack templates?
Christian
------------------------------
Date: Thu, 30 Apr 1998 13:41:38 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: http Reg Exp
Message-Id: <Es8BDE.BL6@world.std.com>
Ronald J Kimball <rjk@coos.dartmouth.edu> writes:
>? the platypus {aka David Formosa} wrote:
>>
>> >URL1: http://myserver.com/dir/file.
>> >URL2: http://myserver.com/dir/file
>>
>> These are not URLs. urls start with <URL: and end with a >
>That seems rather like saying peanut butter is not peanut butter unless it's
>in a jar.
But if the "<URL:" and the ">" is the jar, then why does Deja News
only use from the "<URL:" to the end of a line, breaking many of the
URLs I put in my text?
And why didn't they respond to my mail asking why their software
doesn't use the "Recommendations for URLs in Context" of RFC1738?
(I've had some suspicions on the answers. My links are broken, because
Deja News' software is broken. They didn't respond because they don't
care. If anyone else has some alternate theories, I'd be willing to
entertain them.)
Deja News' first suggestion was to make sure URLs stay on line line,
but that would make some lines containing URLs extend past 60-70
columns, which then would break Usenet conventions.
--
Andrew Langmead
------------------------------
Date: Thu, 30 Apr 1998 13:30:52 +0100
From: "Frank L. Quednau" <quednauf@nortel.co.uk>
Subject: Re: Ongoing E-Mail flood by mikes@activestate.com
Message-Id: <35486EFB.2C6D9239@nortel.co.uk>
Marc Haber wrote:
> Hi!
>
> Active State is sending out "Short Notes to reming everyone that there
> are only a couple of days left to purchase PerlEx at the preview
> prive".
>
> I have received this notice _five_ times, the flood is still ongoing.
> Can anyone confirm this?
Yes, the same s... is going on on my account, but it seems to have stopped (for
now...)
--
____________________________________________________________
Frank Quednau
Phone: +44 (0)1279 402447
http://www.surrey.ac.uk/~me51fq MailTo:F.L.Quednau@bnr.co.uk
____________________________________________________________
------------------------------
Date: Thu, 30 Apr 1998 09:36:03 -0400
From: "Grinch" <grinch@whoville.com>
Subject: Re: Ongoing E-Mail flood by mikes@activestate.com
Message-Id: <6i9tp0$rfm@fridge.shore.net>
Marc Haber wrote in message <6i9ioi$1oo$3@nz12.rz.uni-karlsruhe.de>...
>I have received this notice _five_ times, the flood is still ongoing.
>Can anyone confirm this?
I've received eight of them so far.
-grinch
--
-----
"It's not real coffee unless the sugar cubes float." - me
Sherm Pendley
grinch@whoville.com
http://www.whoville.com
------------------------------
Date: Thu, 30 Apr 1998 13:24:26 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: pass Hash from C to Perl
Message-Id: <Es8AKq.Lxo@world.std.com>
"Jason He" <jason@itrade.net> writes:
>does anyone know how to pass a hash from C to Perl ?
Depends on what you mean. Do you want to create a C function that
takes a hash and then have perl call it? If so, first you need to
learn how to write C extensions and then learn how perl represents a
hash. For that, you should look at the perlxstut, the perlxs, and the
perlguts man pages. Do you want to put perl inside of your C program
so that you can ask your C code to create a hash and then use it in
perl? If so, you'll still need the perlguts man page, but then also
look at perlembed.
Or do you want run the C program and the perl sript as two different
processes (maybe calling the other with system(), using perl's
backticks, or C's popen() or whatever.) then you need to convert the
hash into a format that can be read by the other. One simple form
would just be a text stream:
key: value
key2: value2
Another simple way would be to use DBM files. The text stream method
may be faster if you pass the information through a pipe rather than a
file, DBM files are inherently disk based. On the other hand, Perl's
module of handling DBM files looks a lot like its hash arrays, and the
C interface to DBM isn't bad either. (For more information on DBM
files see the tie function in the perlfunc man page and the perltie
man page.)
--
Andrew Langmead
------------------------------
Date: Thu, 30 Apr 1998 08:34:11 -0400
From: Angelo Sirigos <angelo_sirigos@spamoff.medscape.com>
Subject: Pattern Matching
Message-Id: <35486FC3.5985@spamoff.medscape.com>
I am trying to find a particular patter in a document and it doesn't
seem to be working.
What seems to be happening is that the serahc is getting mucked up with
carriage returns. This causes the search to fail. I've tried using the
s and m modifiers to no avail. I have verified the situation by
creating a single line - and thus eliminating any carriage returns.
When I did this it worked like a charm.
I would very much appreciate any help on the situation. I have posted
some relevant code below. Pleazse excuse the primitive look.
$NewHRef = '<!--#include file="clindisc.mdssi"-->';
$LookFor1 = "<TABLE(.*?)Clinical Discussion(.*?)Submit Your
Comment(.*?)</TABLE>";
$buffer =~ s/$LookFor1/$NewHRef/ig;
The code I am trying to find and parse out:
<TABLE CELLPADDING="3" WIDTH="100%" cellspacing=0>
<TR><TD BGCOLOR="#AA0000"><FONT COLOR="#FFFFFF"><strong>Clinical
Discussion</strong></FONT></TD></TR>
<TR><TD BGCOLOR="#EEEEEE">
Read Forum Comments<p>
<A HREF="form-ClinDiscussion.html">Submit Your Comment</A>
</td></tr></table>
And like I said, if I take the above html code and make all one line, it
works.
--
Angelo Sirigos \\|||//
Netscape DevEdge Champion (.)-(.)
===ooOO=(_)=OOoo==
EMail: angelo_sirigos.spamoff@mail.medscape.com (Remove spamoff to
respond)
Netscape DevEdge Champion
------------------------------
Date: Thu, 30 Apr 1998 08:58:37 -0400
From: Angelo Sirigos <angelo_sirigos@spamoff.medscape.com>
Subject: Re: Pattern Matching
Message-Id: <3548757D.E95@spamoff.medscape.com>
Could there be something else wrong with the code?
Angelo Sirigos wrote:
>
> I am trying to find a particular patter in a document and it doesn't
> seem to be working.
> What seems to be happening is that the serahc is getting mucked up with
> carriage returns. This causes the search to fail. I've tried using the
> s and m modifiers to no avail. I have verified the situation by
> creating a single line - and thus eliminating any carriage returns.
> When I did this it worked like a charm.
>
> I would very much appreciate any help on the situation. I have posted
> some relevant code below. Pleazse excuse the primitive look.
>
> $NewHRef = '<!--#include file="clindisc.mdssi"-->';
> $LookFor1 = "<TABLE(.*?)Clinical Discussion(.*?)Submit Your
> Comment(.*?)</TABLE>";
> $buffer =~ s/$LookFor1/$NewHRef/ig;
>
> The code I am trying to find and parse out:
> <TABLE CELLPADDING="3" WIDTH="100%" cellspacing=0>
> <TR><TD BGCOLOR="#AA0000"><FONT COLOR="#FFFFFF"><strong>Clinical
> Discussion</strong></FONT></TD></TR>
> <TR><TD BGCOLOR="#EEEEEE">
> Read Forum Comments<p>
> <A HREF="form-ClinDiscussion.html">Submit Your Comment</A>
> </td></tr></table>
>
> And like I said, if I take the above html code and make all one line, it
> works.
>
> --
> Angelo Sirigos \\|||//
> Netscape DevEdge Champion (.)-(.)
> ===ooOO=(_)=OOoo==
> EMail: angelo_sirigos.spamoff@mail.medscape.com (Remove spamoff to
> respond)
> Netscape DevEdge Champion
--
Angelo Sirigos \\|||//
Netscape DevEdge Champion (.)-(.)
===ooOO=(_)=OOoo==
EMail: angelo_sirigos.spamoff@mail.medscape.com (Remove spamoff to
respond)
Netscape DevEdge Champion
------------------------------
Date: 30 Apr 1998 10:20:48 GMT
From: scott@softbase.com
Subject: Re: PC-based editors for Perl?
Message-Id: <6i9ja0$j4o$1@mainsrv.main.nc.us>
gaj (gjandl@rf.mnschoolbiz.com) wrote:
> Even at its
> most rotund Vim is about half the size of the average Emacs install...
But who cares? Your editor is the most important tool you use, and you
can sacrifice a few bytes of memory and a few MB of disk space for it.
I mean, it's *the* tool you use for development, and if you can't make
room for it, why bother programming? Your editor should be one
place where you never skimp.
Besides, I've always said Emacs is the most bloated vi clone
I've ever seen :)
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: Thu, 30 Apr 1998 08:05:26 -0600
From: nick@xyvision.com
Subject: Re: Perl and OLE/COM on UNIX
Message-Id: <6i9sum$r5p$1@nnrp1.dejanews.com>
A COM app written on NT and ported to UNIX via one of the two major proting
tools available.
In article <6i82sf$fn2$1@jetsam.uits.indiana.edu>,
bdwheele@indiana.edu (Brian Wheeler) wrote:
>
> In article <6i81lr$qgd$1@nnrp1.dejanews.com>,
> nick@xyvision.com writes:
> > Perl for Win32 has a Win32::OLE package that enables Automation support. I
> > can call applications such as Excel from Perl and actuate the exposed
> > functions.
> >
> > COM has been ported to various UNIX platforms, in particular Solaris. Does
> > perl support COM objects and COM calling conventions on UNIX platforms?
> >
> > If not (as I suppose it doesn't), could someone knowledgeable about the
> > Win32::Ole package outline what would be involved in porting the package
to a
> > UNIX platform?
>
> What are you going to be driving on the unix side with OLE?
> Excel doesn't exist here.
>
> Brian Wheeler
> bdwheele@indiana.edu
>
-----== Posted via Deja News, The Leader in Internet Discussion ==-----
http://www.dejanews.com/ Now offering spam-free web-based newsreading
------------------------------
Date: Wed, 29 Apr 1998 20:56:43 -0300
From: "Gilberto Mautner" <gilberto@locaweb.com.br>
Subject: Re: Perl for Win32 not writing to file
Message-Id: <3548792f.0@news1.ibm.net>
Oops... my mistake
The file was actually being written - but on the web site root directory...
Well, the problem is not that bad anymore - anyway how do I write to a file
in the same directory?
Thanks a lot for the help you gave - Gilberto
Gilberto Mautner escreveu na mensagem <3547ba4a.0@news1.ibm.net>...
>OK. Change was made. I still don't get any error messages - and the file is
>simply not there...
>
>>Aieee. I think you might want:
>>open(SAIDA,$SAIDA) || die "Cant open the file - $!";
>
>
>
------------------------------
Date: 30 Apr 1998 10:25:02 GMT
From: scott@softbase.com
Subject: Re: Perl vs. Java
Message-Id: <6i9jhu$j4o$2@mainsrv.main.nc.us>
To me, the most basic and important difference between Perl and Java is
when you get Perl program and it doesn't work on your system, you can
hack the code and make it work. If a Java binary doesn't work, you're
just SOL and there's nothing you can do. At least Perl doesn't pretend
to work as-is on all platforms and gives you an out. Java assumes that
everything is fine and breaks down horribly when it is not, but Perl
assumes that it is in the real, Murphy's Law world and helps you out.
This is one reason why I've never been able to figure out the Perl ->
Java cross compiler thing. It seems like it is throwing away the best
aspects of Perl.
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: Thu, 30 Apr 1998 13:41:49 GMT
From: jeffmcc@mindspring.com (Jeff McCreary)
Subject: Re: Perl vs. Java
Message-Id: <35487d43.4135346@news>
That's not necessarily true. I can hack the code on a Java app or
applet to make it work on my system just as easily as I can with Perl.
I think there is a large misconception about "Write Once Run
Anywhere". Just b/c the creators claim that, they know good and well
that there are always going to be exceptions. Hell I can code an app
in VB that runs great on one Win95 machine but the very next machine
may croak the very instant I invoke the application. Same for Java,
C, C++, or Perl.
On 30 Apr 1998 10:25:02 GMT, scott@softbase.com wrote:
>To me, the most basic and important difference between Perl and Java is
>when you get Perl program and it doesn't work on your system, you can
>hack the code and make it work. If a Java binary doesn't work, you're
>just SOL and there's nothing you can do. At least Perl doesn't pretend
>to work as-is on all platforms and gives you an out. Java assumes that
>everything is fine and breaks down horribly when it is not, but Perl
>assumes that it is in the real, Murphy's Law world and helps you out.
>
>This is one reason why I've never been able to figure out the Perl ->
>Java cross compiler thing. It seems like it is throwing away the best
>aspects of Perl.
>
>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: Thu, 30 Apr 1998 12:55:31 +0100
From: Ian Boys <boys@aspentech.com>
Subject: Re: Perl/Wall lingo question
Message-Id: <354866B3.500F@aspentech.com>
Russ Allbery wrote:
>
> [snipped]
>
> More specifically, a scalar is a magnitude with no associated
> direction.
>
> That's a bit at odds with how the word is used in Perl, though, where it
> refers to a "simple" variable (a number or string), but I suppose the
> analogy is that a scalar isn't an array or hash.
>
If you think in terms of a scalar being a variable with zero dimensions
then the Perl usage makes sense. Whenever you want to specify a size
as well as a direction for something, then you need more than one
number, so zero dimensions of storage is not enough and you need an
array.
Ian
------------------------------
Date: 30 Apr 1998 14:30:18 +0200
From: Tony Curtis <Tony.Curtis+usenet@vcpc.univie.ac.at>
Subject: Re: SMTP and sockets
Message-Id: <7xd8dzebl1.fsf@beavis.vcpc.univie.ac.at>
Re: SMTP and sockets, Bart <bart.mediamind@tornado.be> said:
Bart> Question one: getservebyname('smtp','tcp') asks about
Bart> the SMTP port. But the result does not depend on the
Bart> $mailserver, which it should. Otherwise, it makes no
Bart> sense, does it? If my computer uses the standard 25
Bart> for SMTP port, and the mailserver I'm trying to
Bart> connect to uses another port number for SMTP, this
Bart> code will use the wrong port number, right?
No, it uses the "right" port, where you have defined "right"
and "wrong" wrongly :-)
smtp is defined to be 25/tcp. If you use a different port,
you have to tell your code to use that port instead.
Of course, you can set up a local service called smtp on a
different port but that is probably asking for trouble. You
can tell the usual MTAs to use ports other than 25 for
outgoing mail (e.g. M mailer defs. in sendmail).
Bart> Question two: if the DNS lookup doesn't work
Bart> (gethostbyname() returns undef), I can STILL connect,
Bart> but only to my local SMTP server. I'm not sure this is
Bart> garanteed to work, but it works on my ISP's machine.
It's quite possible that there is no DNS A record - what
happens during the gethost* lookup depends on how your local
nameservice is implemented, and how you address your smtp
server box.
Bart> So: why bother? Why do, for example, the Net::*
Bart> modules do such an elaborate search to find out the
Bart> proper SMTP server?
To handle all possible situations - everyone does it
differently :-)
Bart> I can send mail through virtually
Bart> any SMTP server,
Only if you are allowed to send mail to that server, or if
that server allows anyone to relay, which it shouldn't.
Bart> and in particular, through the SMTP server on MY
Bart> machine, right?
Depends on how you set it up. Presumably "yes" in the
default situation where you are a local user on the same
machine.
hth
tony
--
Tony Curtis, Systems Manager, VCPC, | Tel +43 1 310 93 96 - 12; Fax - 13
Liechtensteinstrasse 22, A-1090 Wien, AT | http://www.vcpc.univie.ac.at/
"You see? You see? Your stupid minds! Stupid! Stupid!" ~ Eros, Plan9 fOS.
------------------------------
Date: Thu, 30 Apr 1998 15:20:40 +0200
From: Francesc Guasch <frankie@etsetb.upc.es>
Subject: visual basic replacement
Message-Id: <35487AA8.25A0D13A@etsetb.upc.es>
I'm just doing little cgi with perl.
I know perl can be used in win32.
I wonder if I could make windows applications
in perl and get rid of visual basic.
I'm talking about database client applications
where the db could be in a server or access.
I know I can use DBI for access a db, what
I want to know if perl is suitable for building
typical windows stuff and if there are modules
for displaying forms and dialogs ...
--
^-^.-----. mailto:frankie@citel.upc.es
o o ) http://citel.upc.es/~frankie
Y (_ (___(ssss
------------------------------
Date: Thu, 30 Apr 1998 06:26:47 -0700
From: "Creede Lambard" <$_=qq!fearless\@NOSPAMio.com!;y/A-Z//d;print>
Subject: Re: You people want Perl to be popular?
Message-Id: <6i9ugb$jo3@bgtnsc03.worldnet.att.net>
Bart Lateur wrote in message <3549292e.2095004@news.tornado.be>...
>Yes, but only if for a reason. I mean, yes, popular, with people that
>can value programing tools for it's merit.
>
>Not popular with the common people, though. There's no reason/use for
>it. That would be just "hype".
>
> Bart.
I think that's what I mean when I say "Popularity ain't all it's cracked
up to be." AOL and the Internet in general, and I'm sure others can
furnish examples, did not fare too well be being "popular."
------------------------------
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 2463
**************************************