[13133] in Perl-Users-Digest
Perl-Users Digest, Issue: 543 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Aug 15 13:07:16 1999
Date: Sun, 15 Aug 1999 10:05:07 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sun, 15 Aug 1999 Volume: 9 Number: 543
Today's topics:
Re: HARASSMENT -- Monthly Autoemail <urielw@tiac.net>
Re: HARASSMENT -- Monthly Autoemail <Bill@fuckyou.co.uk>
Re: HARASSMENT -- Monthly Autoemail (I R A Darth Aggie)
Re: HARASSMENT -- Monthly Autoemail <dgris@moiraine.dimensional.com>
Re: How to format string? <flavell@mail.cern.ch>
Re: How to view code as text in working cgi script (Abigail)
Re: HTTP redirect..not working (Abigail)
Re: IP <vrodo@gmx.net>
Re: MD5 Replay Cache (Malcolm Ray)
Re: Nastiness contrary to the spirit of perl? (I R A Darth Aggie)
Re: Nastiness contrary to the spirit of perl? (I R A Darth Aggie)
Re: Nastiness contrary to the spirit of perl? (I R A Darth Aggie)
Need help with search script <jeff@247sk8mag.com>
Re: Perl Programmers' Web Design "Difficulties" (Abigail)
Re: Perl Programmers' Web Design "Difficulties" (Mark-Jason Dominus)
Re: Perl/NT Problem (Bill Moseley)
Re: perldoc -> HTML site on the web? (hoz)
Re: Tom Christiansen "Perl Cookbook" (elephant)
Re: Why use Perl when we've got Python?! (Martijn Faassen)
Re: Why use Perl when we've got Python?! (Kevin Reid)
Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sun, 15 Aug 1999 10:50:32 -0400
From: Uriel Wittenberg <urielw@tiac.net>
Subject: Re: HARASSMENT -- Monthly Autoemail
Message-Id: <37B6D3B7.9A8E934C@tiac.net>
Jim Seymour wrote:
> In article <37B43687.B0525875@tiac.net>,
> Uriel Wittenberg <urielw@tiac.net> writes:
> [snip]
> >
> > Regardless of anyone's position on posting style, I would hope just
> > about everyone understands the vindictive and antisocial nature of
> > such behavior.
>
> Assuming that Tom's remarks wrt to your posting style are
> accurate: I might as well argue that your posting style is
> "anti-social."
Since the hope I express above is evidently in vain, it seems I should also have
pointed out that Tom's remarks were not accurate.
Yes, I erred horribly ... horribly. But anyone who cares to review the thread which
prompted Tom's aggression ("Re: Documenting character encoding --
comments/corrections?", on comp.infosystems.www.authoring.html) can see I was more
than ready to promptly correct any protocol breach that was brought to my
attention. In other words, Tom's goon tactics were wholly gratuitous.
> People who quote the entire text of the article they're
> following up, and *particularly* those who place their comments
> before all that quoting, are being massively inconsiderate and
> lazy, IMO. Not to mention wasting bandwidth and disk space.
>
> Perhaps you should consider getting the hint.
>
> Regards,
"Massively," you say. Well. Congratulations for speaking your mind.
The irony is considerable. Tom Christiansen's own post in the above-mentioned
thread, sent around the same time he lobbed his clever grenade at me, uses a full
18 lines to promote the entry of hard RETURN's when composing messages.
(Incidentally, it does not make for fascinating reading.)
This is obviously on-topic for his supporters; others may wonder about their
Kool-Aid.
In passing, he misquotes a Netscape designer and offers a piercing criticism of the
Netscape interface ("totally fucked up").
Frankly, I find it unbelievable that anyone’s defending this guy. What kind of
place is the Internet?
But I think I may understand this passion about Netscape and Windows. It appears
there are still people surviving today who enter text into computers the way people
used to type on typewriters decades ago, monitoring their horizontal position and
hitting RETURN at regular intervals. The only way, some seem to think, to achieve
"writer-directed formatting."
Now, no one can deny (though this is not literally true) that both Netscape and
Windows are execrable, abominable products, embarrassments to mankind. But *at
least* some elementary concepts from the dawn of thinking have penetrated, and we
have autowrap. (Other features too, colors etc.; things that produce ire on
comp.infosystems.www.authoring.html aren't even remarked on ng's where people use
more modern apps.)
The greatest irony is that for all the protracted discussions of posting protocols,
html esoterica, bandwidth concerns, the record shows people talking at cross
purposes; misunderstanding simple English; failing, in short, to communicate.
----------------
http://www.tiac.net/users/urielw/
------------------------------
Date: Sun, 15 Aug 1999 18:04:09 -0700
From: William Pettrey <Bill@fuckyou.co.uk>
Subject: Re: HARASSMENT -- Monthly Autoemail
Message-Id: <37B76389.3C56@fuckyou.co.uk>
Miguel Cruz wrote:
>
> William Pettrey <Bill@fuckyou.co.uk> wrote:
> > I'm not participating in the perl group, I didn't pay attention to the
> > cross posting when I clicked reply
>
> Well, now that you've admitted responsibility we can put this sorry matter
> behind us.
>
> miguel
Responsibility for what? Are you pissed off, miguel, that I called tom
an asshole for his e-mails? The only way to put this matter behind us is
if people like him stop harassing others.
------------------------------
Date: 15 Aug 1999 15:51:59 GMT
From: fl_aggie@thepentagon.com (I R A Darth Aggie)
Subject: Re: HARASSMENT -- Monthly Autoemail
Message-Id: <slrn7rdol1.lrv.fl_aggie@thepentagon.com>
On Sun, 15 Aug 1999 03:35:54 GMT, Gil Harvey <gh@netquick.net>, in
<37b6355f.18129321@news.interpath.net> wrote:
+ On 15 Aug 1999 02:09:53 GMT, fl_aggie@thepentagon.com (I R A Darth
+ Aggie) wrote:
+
+
+ >You realize that by posting to Usenet, you are implicitly permitting
+ >email responses?
+
+ No - I'm permetting responses to my post in the same forum I
+ posted. Get real....
If that's what you believe, then stop posting to usenet.
James
--
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/doc/FAQs/cgi/idiots-guide.html>
------------------------------
Date: 15 Aug 1999 11:09:11 -0600
From: Daniel Grisinger <dgris@moiraine.dimensional.com>
Subject: Re: HARASSMENT -- Monthly Autoemail
Message-Id: <m3so5l0y4o.fsf@moiraine.dimensional.com>
rjk@linguist.dartmouth.edu (Ronald J Kimball) writes:
> I am very disappointed in everyone who is defending TomC in this thread.
<snip>
<AOL>
Me, too!!!!!
</AOL>
Net abuse is net abuse, whether is originates from a less-than-clueful
newbie or a less-than-clueful expert.
That said, just kill most of what Tom posts (say, anything under 50
lines or over 400) and you'll find your enjoyment of clpm will go up
by a considerable amount. :-)
dgris
--
To program is to be.
------------------------------
Date: Sun, 15 Aug 1999 16:52:54 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: How to format string?
Message-Id: <Pine.HPP.3.95a.990815164717.27284D-100000@hpplus03.cern.ch>
On Sun, 15 Aug 1999, Thomas Tsoi wrote:
> just a misunderstanding of the question,
and then quoted the entire previous discussion, which seemed to contain
quite a number of misunderstandings.
Did you have a particular one in mind?
> i guess it is not necessary for you
> to be that arrogant.
Well, you're arrogant enough to believe that we're all going to
carefully examine the entrails of the previous discussion, most of which
has presumably no relevance to the point that you wanted to make, and
work out just exactly what it is that you were trying to bring to the
attention of the group. Me, I can't be bothered, I'm just setting you
down as another helpless whiner who'd prefer not to learn.
------------------------------
Date: 15 Aug 1999 10:17:08 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: How to view code as text in working cgi script
Message-Id: <slrn7rdmhj.a5.abigail@alexandra.delanet.com>
Warren Bell (resource@ERASEjps.net) wrote on MMCLXXIV September MCMXCIII
in <URL:news:37B5A827.5F8D74B7@ERASEjps.net>:
// How can I call a cgi program on the web to see it's code? Is there a
// way to do this? Any adjustments I can do to my browser?
No, you cannot steal CGI programs that way.
Abigail
--
sub camel (^#87=i@J&&&#]u'^^s]#'#={123{#}7890t[0.9]9@+*`"'***}A&&&}n2o}00}t324i;
h[{e **###{r{+P={**{e^^^#'#i@{r'^=^{l+{#}H***i[0.9]&@a5`"':&^;&^,*&^$43##@@####;
c}^^^&&&k}&&&}#=e*****[]}'r####'`=437*{#};::'1[0.9]2@43`"'*#==[[.{{],,,1278@#@);
print+((($llama=prototype'camel')=~y|+{#}$=^*&[0-9]i@:;`"',.| |d)&&$llama."\n");
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: 15 Aug 1999 10:20:00 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: HTTP redirect..not working
Message-Id: <slrn7rdmmt.a5.abigail@alexandra.delanet.com>
Arthur Cinader (acinader@panix.com) wrote on MMCLXXIV September MCMXCIII
in <URL:news:7p4f60$phi$1@news.panix.com>:
'' When a form succeeds, I wan to redirect to another url. I wan to avoid
'' having to use any separate modules, etc.
Now, why is that? Modulefobia?
'' Here is what I am putting now:
''
'' print "HTTP/1.0 302 Found\n";
'' print "Location: http://www.foo.com/index.html\n\n";
''
'' I'm getting the following error in my weblogs:
''
'' apache: [Sat Aug 14 15:09:51 1999] [error] [client 204.90.78.7] [server
'' www.foo.com] malformed header from script. Bad header=HTTP/1.0 302 Found:
'' /htdocs/cgi-bin/fooform.cgi
That's not a Perl error. It's not an HTML error either. Off topic in
all the groups you crossposted to!
Abigail
--
Anyone who slaps a "this page is best viewed with Browser X" label
on a Web page appears to be yearning for the bad old days, before the
Web, when you had very little chance of reading a document written on
another computer, another word processor, or another network.
[Tim Berners-Lee in Technology Review, July 1996]
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Sun, 15 Aug 1999 17:05:54 +0200
From: "Vrodo" <vrodo@gmx.net>
Subject: Re: IP
Message-Id: <7p6l1e$b40$1@public.ndh.net>
F00 Baz <f00baz@my-deja.com> schrieb in im Newsbeitrag:
7p60qr$26v$1@nnrp1.deja.com...
> $ENV{'REMOTE_ADDR'} should return you IP address of the machine, where
> request was made from. if your server acts also as proxy, and your
> users use it, you'll definetely have an IP addy of yer boxen there..
Thanx, but perhaps I should have said that the script is only run on an
extern server (I don't host it myself on my computer but on an professional
webspace provider). I use a proxy, but others who come from AOL or somewhere
don't use the same proxy as me, but my script always gives me the same IP,
that's why I thought it would be the IP of my webspace provider. I use it
for an IP check, so that hits are not counted more than once.
------------------------------
Date: 15 Aug 1999 16:57:03 GMT
From: M.Ray@ulcc.ac.uk (Malcolm Ray)
Subject: Re: MD5 Replay Cache
Message-Id: <slrn7rdsav.lfs.M.Ray@carlova.ulcc.ac.uk>
On Sun, 15 Aug 1999 11:04:19 GMT, Robert A. Costner <rcostner@serversystems.net>
wrote:
>In Perl I am creating a "replay cache" text file 1,000 lines long,
>each line being a 33 byte hex code known as an MD5 checksum. (MD5 is a
>CPAN library) The program then takes a series of text messages and
>processes them. For each message a new MD5 checksum is created and
>appended to the end of the list, while the oldest checksum is removed
>from the list.
>
>The way I do this is rewrite the entire list, line by line, each time.
>I'm using the grep command to look for matches. I use a text file
>only for convienence. The 1,000 entries is just a number I pulled out
>of the air; it could be larger. This seems inefficent. Can someone
>suggest a better way to store and remove entries from my replay cache?
>
>(An email CC to me would be appreciated)
>
Using grep and a file sounds an inefficient way of doing this. Why not
use a hash? If you need persistence of the cache between runs, you
could use a tied hash.
Here's an example. This reads filenames on STDIN, one per line, and
calculates the MD5 signature of each file. The most recent 1000 signatures
are held in a tied hash. An array is used as a FIFO to decide which
signature to delete from the cache when it's full.
#!/usr/bin/perl -w
use strict;
use Digest::MD5;
use DB_File;
use Fcntl;
my $max = 1000; # Max number of MD5 signatures to keep
my %sigs; # Hash to hold MD5 signatures
my $sig_db = 'sigs'; # DB file in which to record MD5 signatures
# Tie the hash to the DB file, creating if necessary
tie(%sigs, 'DB_File', $sig_db,
O_CREAT | O_RDWR, # open r/w, create if doesn't exist
0640,
$DB_HASH)
or die "Error tying hash to $sig_db: $!";
# Get initial list of known signatures. This is used to decide which to
# drop when the cache is full. Note: when the program starts with an
# existing DB file, this list will *not* be in order of arrival
my @sigs = keys %sigs;
# $sig is the Digest::MD5 object used for calculating each file's signature
my $sig = Digest::MD5->new or die "Error creating MD5 object: $!";
# Loop, reading list of files
while (my $file = <STDIN>)
{
chomp $file;
unless (open(F, $file))
{
warn "Error opening $file: $!";
next;
}
# Calculate file's signature
binmode(F);
$sig->reset;
$sig->addfile(*F);
my $this_sig = $sig->hexdigest;
close(F);
# Is this signature in our cache?
print "$file: signature is ";
if (exists $sigs{$this_sig})
{
print "in the cache\n";
}
else
{
print "not in the cache\n";
# Add signature to cache
$sigs{$this_sig}++;
push(@sigs, $this_sig);
# Drop oldest signature if cache full
delete $sigs{shift @sigs} if @sigs > $max;
}
}
# Finished
untie %sigs;
__END__
Some alternatives:
1. Lose the tied hash. Keep the signatures in a text file as before.
Read them into the hash at startup and rewrite the file at exit, but
leave the file alone during the run.
2. If, for some reason, you must have a text file holding the signatures,
and it must be kept up to date during a run, you could use the fact that
the signatures are always the same length by opening the flat signature
file with +< and using seek to set the file position before updating it:
the position of the nth signature is (($n - 1) % 1000) * 33. You'd
need to maintain an external record of the position of the current 'first'
signature, since this would cycle through the file.
--
Malcolm Ray University of London Computer Centre
------------------------------
Date: 15 Aug 1999 16:02:25 GMT
From: fl_aggie@thepentagon.com (I R A Darth Aggie)
Subject: Re: Nastiness contrary to the spirit of perl?
Message-Id: <slrn7rdp8j.lrv.fl_aggie@thepentagon.com>
On Sun, 15 Aug 1999 03:11:58 GMT, Id Est <id-est@home.com>, in
<slrn7rcbt5.9v9.id-est@erato.bigredrockeater.com> wrote:
+ how many of those newbies would have become good perl programmers?
Not many, they are, for the most part, script-kiddies who have no real
interest in programming much beyond customizing pre-built scripts. They
have demonstrated this lack-of-desire by *not* bothering to look at
the documentation.
+ now they're in the python camp, no doubt.
Oh, right, where spacing is syntactically significant? *snort* That
would be even *more* frustrating to them.
+ mindshare is a terrible thing to waste.
Let python deal with 'em.
+ > Be a good little Usenaut, and answer all the newbie questions for the
+ > next month.
+ once i get as good as Abigail claims to be, i'll probably do just that.
No. Sorry. WRONG ANSWER. They're *newbie* questions, how hard can it be
to answer them, even if you're just a bit above that level? If you want
things to change, then get off your fat, lazy ass and DO SOMETHING.
And whining doesn't count as "doing something".
James
--
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/doc/FAQs/cgi/idiots-guide.html>
------------------------------
Date: 15 Aug 1999 16:04:26 GMT
From: fl_aggie@thepentagon.com (I R A Darth Aggie)
Subject: Re: Nastiness contrary to the spirit of perl?
Message-Id: <slrn7rdpcc.lrv.fl_aggie@thepentagon.com>
On Sun, 15 Aug 1999 14:26:32 GMT, Id Est <id-est@home.com>, in
<slrn7rdje1.b7n.id-est@erato.bigredrockeater.com> wrote:
+ a BIT short? i've been on USENET for nearly 20 years and Abigail is one
+ of the worst offenders i've seen, short of complete yahoos like Plutonium
+ or Sternlight.
Oh, please. If you've been on Usenet for 20 years, you need to get out
to other newsgroups more often...
James
--
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/doc/FAQs/cgi/idiots-guide.html>
------------------------------
Date: 15 Aug 1999 16:05:36 GMT
From: fl_aggie@thepentagon.com (I R A Darth Aggie)
Subject: Re: Nastiness contrary to the spirit of perl?
Message-Id: <slrn7rdpei.lrv.fl_aggie@thepentagon.com>
On 15 Aug 1999 09:18:52 GMT, Malcolm Ray <M.Ray@ulcc.ac.uk>, in
<slrn7rd1fs.k3m.M.Ray@carlova.ulcc.ac.uk> wrote:
+ You don't have to be as good as Abigail to answer FAQs or other simple
+ questions. I'm sure you'll have seen questions which you're capable of
+ answering.
Unless I miss my guess, people like our friend isn't interested in
helping other people, they're interesting in complaining.
James
--
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/doc/FAQs/cgi/idiots-guide.html>
------------------------------
Date: Sun, 15 Aug 1999 11:15:35 -0500
From: "twentyfour seven" <jeff@247sk8mag.com>
Subject: Need help with search script
Message-Id: <37b6da8b.0@news.advancenet.net>
I recently attempted to install a site search on my site and it works fine
except for one thing, after it returns the first results page the link at
the bottom to view the next ten results will remove the + sign from between
two words. This in turn causes a syntax error due to the empty space. Is
there a snippet of code to remedy this? If so where do I put it, Here is the
code for the prev. and next. links.
if ($FORM{'S'}) {
$prev = $FORM{'S'} - 10;
$prev = 0 if ($prev < 0);
$link = qq(<a
href="search.pl?Q=$FORM{'Q'}&E=$FORM{'E'}&X=$FORM{'X'}&S=$prev">< <
Prev</a>);
}
$link .= " | " if (($FORM{'S'}) and ($next));
$link .= qq(<a
href="search.pl?Q=$FORM{'Q'}&E=$FORM{'E'}&X=$FORM{'X'}&S=$next">Next >
></a>\n) if ($next);
Thanks
--
[--Twentyfour seven online skateboarding magazine--]
URL: http://www.247sk8mag.com
email: jeff@247sk8mag.com
------------------------------
Date: 15 Aug 1999 10:15:07 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Perl Programmers' Web Design "Difficulties"
Message-Id: <slrn7rdmdn.a5.abigail@alexandra.delanet.com>
Benjamin Franz (snowhare@long-lake.nihongo.org) wrote on MMCLXXIV
September MCMXCIII in <URL:news:aL5t3.494$bZ1.46109@typhoon01.swbell.net>:
__
__ Mmmmm...Living on *both* sides of the fence as I have for the last
__ five years, I have to disagree. Graphics and design are *part* of
__ effective communication. It is a fundamental error to believe
__ that presentation *can* be 100% seperated from content.
The de facto internet standards, the RFCs, have been written in plain
text, 7 bits ASCII, for the past 30 years.
I can read RFC 1, dated 7 April 1969 without any problems; I don't
need any outdated viewer or what so ever. All I need to do is type
"more ~/RFC/RFC0001" on my vt220 terminal. And so can my blind friend,
is she would be inclined to read RFCs.
And in another 30 years, I will still be able to read the same RFC.
Without any problems. Without needing any special software.
The RFCs are published in plain text for damn good reasons. And they
communicate effectively - otherwise, you would not be reading this.
It's unlikely the IETF will change to non-plain-text format anytime soon.
And that's a very good thing.
Now, it might be true that www.mtv.com attracts more visitors and gets
more "hits" than a site that makes RFCs available. But who the fuck cares?
Oh, and do read up on the goals the Gutenberg project set for themselves.
Delivering 1 trillion titles by the year 2001. That's plain text, double
spaced, 7 bits ASCII. No frills. No fluff. And still going strong after
almost 30 years.
Abigail
--
**Welcome To The World of Free Plain Vanilla Electronic Texts**
**Etexts Readable By Both Humans and By Computers, Since 1971**
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Sun, 15 Aug 1999 16:09:00 GMT
From: mjd@op.net (Mark-Jason Dominus)
Subject: Re: Perl Programmers' Web Design "Difficulties"
Message-Id: <7p6ols$bnl$1@monet.op.net>
In article <37B4B6E6.F45FDEFD@gethits.com>, <support@gethits.com> wrote:
>
>
>Garth Sainio wrote:
>
>> Or maybe it is that programmers prefer the useful to the eye candy?
>
>True, but the appeal of the web is the combination of both (when
>appropriate).
Well, I disagree. You didn't include my site
(http://www.plover.com/~mjd/perl/) in your list, but I think you would
have if you had known about it. Pages are black text on a white
background. I don't want to include a lot of graphic crap that will
make it less useful. I want my pages to come up as fast as possible.
I want them to be easy to read when they get there.
I don't want to use a lot of frames and tables that will slow down the
loading time and take up valuable screen space. I want people to be
able to start reading immediately and not to have to wait until the
entire page has loaded before any text appears. I want blind people
to be able to use my site.
When you say `the appeal of the web is' you are expressing your opinion.
Other people have a different opinion. That does not mean that they
are having `difficulties'.
------------------------------
Date: Sun, 15 Aug 1999 08:52:52 -0700
From: moseley@best.com (Bill Moseley)
Subject: Re: Perl/NT Problem
Message-Id: <MPG.1220822ceae0494d9896ba@nntp1.ba.best.com>
John Frank (jwfrank@toad.net) seems to say...
> I am using Perl on a NT machine. What I want to do is
> read in directories and subdirectories
> $SEARCHCMD = "dir/ad/s/b |";
> open(DIRLIST, $SEARCHCMD);
look into perldoc -f opendir()
perldoc -f readdir()
perldoc File::Find to make it easy to recurse the directory tree.
Check errors and don't forget to write $! on error conditions, too.
And you can use '/' for path separator even in DOS.
BTW -- question: Anyway to make File::Find NOT recurse??
--
Bill Moseley mailto:moseley@best.com
pls note the one line sig, not counting this one.
------------------------------
Date: Sun, 15 Aug 1999 22:56:58 GMT
From: hoz@rocketmail.com (hoz)
Subject: Re: perldoc -> HTML site on the web?
Message-Id: <37b74594.354456789@news.netvision.net.il>
>But I've yet to come across a perldoc2html page.
I have..try
http://www.cclabs.missouri.edu/cgi-bin/perlman.cgi
-hoz
------------------------------
Date: Mon, 16 Aug 1999 01:25:39 +1000
From: elephant@squirrelgroup.com (elephant)
Subject: Re: Tom Christiansen "Perl Cookbook"
Message-Id: <MPG.122187016b170887989c27@news-server>
Malcolm Ray writes ..
>$ ./foo example@example.com example@example.com test test
>Odd number of elements in hash assignment at
>/usr/lib/perl5/site_perl/5.005/Mail/Mailer/smtp.pm line 13.
>
>The message is still delivered, but via the SMTP listener on localhost,
>not via mail-relay.
>
>Yours?
my apologies for wasting your time Malcolm .. my original ('working')
test script has long since been written over .. so I can only guess that
in my haste I originally made the same mistake that the Cookbook authors
probably did .. ie. didn't use '-w' in the running of my script
without the '-w' all I saw was the successful mail arriving in my
mailbox and thought that it had worked .. now - with the warnings on I'm
seeing the same error as you regarding the "Odd number of elements"
your comments regarding the SMTP listener put my own mind to rest
because in your previous posting - when you asked about Mail::Mailer
versions - I took a glance at smtp.pm and was struggling to understand
how the "wrong" syntax was working .. back on the straight and narrow
now though
--
jason - elephant@squirrelgroup.com -
------------------------------
Date: 15 Aug 1999 16:14:40 GMT
From: m.faassen@vet.uu.nl (Martijn Faassen)
Subject: Re: Why use Perl when we've got Python?!
Message-Id: <7p6p1g$m8c$1@newshost.accu.uu.nl>
Tom Christiansen <tchrist@mox.perl.com> wrote:
[snip snip]
> I haven't personally heard many stories of people getting bitten by
> a similar blocking-related issue in Python. Now granted, that proves
> little, as I do not spend my days living and breathing Python.
I work with it more; I don't recall having seen many stories.
> But the
> existence proof suffice to show that the problem *can* occur, and that
> people can actually have bugs and lost productivity because of it.
> You can't tell from a purely anecdotal basis, but it's possible
> that it occurs less in Python than in C.
I think it happens less easily in Python than in C (Perl did right in
my opinion to require { and } around all blocks). To me these problems
seem to be at least easily avoided, but this may be because I'm spoiled
my the wonderful python-mode that's supplied for Emacs, that knows
all about indenting.
> Optional braces are a problem. You can fix this one of two ways.
> Perl chose one way by removing the optionality part: Thou Shalt Embrace
> the target of if/while/for statements, irrespective of the number
> of statements. Python chose a different way: it removes the braces.
> You must use indentation alone for indicate a set of target statements.
[snip discussion of pass]
> And annoyingly, so is this:
> if 1:
> # decomment the next line on a full moon
> # x = 1
> y = 20
> Because, you see, that block has no statement now, which is illegal.
[snip discussion on how this doesn't occur with braces in Perl]
Yes, this can be a slight annoyance with Python. Of course the parser
catches it so it not a cause for bugs, but still a slight annoyance. Not
a very large one though in my humble opinion, but I think I've been bitten
by it once or twice.
Regards,
Martijn
------------------------------
Date: Sun, 15 Aug 1999 12:21:07 -0400
From: kpreid@ibm.net (Kevin Reid)
Subject: Re: Why use Perl when we've got Python?!
Message-Id: <1dwjvgn.t54zoltyt3uqN@imac.loc>
Uri Guttman <uri@sysarch.com> wrote:
> here was what i had in mind. similar but two closures and no op arg.
I thought of doing that, but I liked the single-sub version better,
because that way you don't have two separate closures that operate on
the same thing.
TMTOWTDI, of course.
--
Kevin Reid: | Macintosh:
"I'm me." | Think different.
------------------------------
Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 1 Jul 99)
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" from
almanac@ruby.oce.orst.edu. The real FAQ, as it appeared last in the
newsgroup, can be retrieved with the request "send perl-users FAQ" from
almanac@ruby.oce.orst.edu. 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" from
almanac@ruby.oce.orst.edu.
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 V9 Issue 543
*************************************