[13444] in Perl-Users-Digest
Perl-Users Digest, Issue: 854 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Sep 20 10:07:27 1999
Date: Mon, 20 Sep 1999 07:05:09 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <937836309-v9-i854@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Mon, 20 Sep 1999 Volume: 9 Number: 854
Today's topics:
[Perl] How to find the Perl FAQ <rootbeer&pfaq*finding*@redcat.com>
bibder IPC <jerrad@networkengines.com>
Re: Can I call a compiled C program from Perl? (Kragen Sitaker)
Re: CONTEST: Range Searching (Chris Nandor)
Re: Encrypting (and decrypting) password <steve.button@nl.origin-it.com>
how to change order files from readdir <j_breedveld@hotmail.com>
Re: how to change order files from readdir <dan@tuatha.sidhe.org>
Re: How to create files from CGI script? <flavell@mail.cern.ch>
Re: How to create files from CGI script? (I.J. Garlick)
Re: List files in a dir <tchrist@mox.perl.com>
list of lists <kneifan@pool.informatik.rwth-aachen.de>
New posters to comp.lang.perl.misc <gbacon@cs.uah.edu>
Re: Newbie questions on list assignment (Eric Bohlman)
OT: deja.com alters posts <mikecard@my-deja.com>
Re: Programming Modules for Perl <tech@tburg.net>
Re: Return values of stat( file ) pincky@my-deja.com
s/// conditional substitution <picaza@chsi.com>
Statistics for comp.lang.perl.misc <gbacon@cs.uah.edu>
target frame in URL redirection <wcwarren@primus.com.au>
Thank you <tech@tburg.net>
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 20 Sep 1999 10:24:01 GMT
From: Tom Phoenix <rootbeer&pfaq*finding*@redcat.com>
Subject: [Perl] How to find the Perl FAQ
Message-Id: <pfaqmessage937823041.19171@news.teleport.com>
Archive-name: perl-faq/finding-perl-faq
Posting-Frequency: weekly
Last-modified: 18 Aug 1999
[ That "Last-modified:" date above refers to this document, not to the
Perl FAQ itself! The last major update of the Perl FAQ was in Summer of
1998; of course, ongoing updates are made as needed. ]
For most people, this URL should be all you need in order to find Perl's
Frequently Asked Questions (and answers).
http://www.cpan.org/doc/FAQs/
Please look over (but never overlook!) the FAQ and related docs before
posting anything to the comp.lang.perl.* family of newsgroups.
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Beginning with Perl version 5.004, the Perl distribution itself includes
the Perl FAQ. If everything is pro-Perl-y installed on your system, the
FAQ will be stored alongside the rest of Perl's documentation, and one
of these commands (or your local equivalents) should let you read the FAQ.
perldoc perlfaq
man perlfaq
If a recent version of Perl is not properly installed on your system,
you should ask your system administrator or local expert to help. If you
find that a recent Perl distribution is lacking the FAQ or other important
documentation, be sure to complain to that distribution's author.
If you have a web connection, the first and foremost source for all things
Perl, including the FAQ, is the Comprehensive Perl Archive Network (CPAN).
CPAN also includes the Perl source code, pre-compiled binaries for many
platforms, and a large collection of freely usable modules, among its
560_986_526 bytes (give or take a little) of super-cool (give or take
a little) Perl resources.
http://www.cpan.org/
http://www.perl.com/CPAN/
http://www.cpan.org/doc/FAQs/FAQ/html/
http://www.perl.com/CPAN/doc/FAQs/FAQ/html/
You may wish or need to access CPAN via anonymous FTP. (Within CPAN,
you will find the FAQ in the /doc/FAQs/FAQ directory. If none of these
selected FTP sites is especially good for you, a full list of CPAN sites
is in the SITES file within CPAN.)
California ftp://ftp.cdrom.com/pub/perl/CPAN/
Texas ftp://ftp.metronet.com/pub/perl/
South Africa ftp://ftp.is.co.za/programming/perl/CPAN/
Japan ftp://ftp.dti.ad.jp/pub/lang/CPAN/
Australia ftp://cpan.topend.com.au/pub/CPAN/
Netherlands ftp://ftp.cs.ruu.nl/pub/PERL/CPAN/
Switzerland ftp://sunsite.cnlab-switch.ch/mirror/CPAN/
Chile ftp://ftp.ing.puc.cl/pub/unix/perl/CPAN/
If you have no connection to the Internet at all (so sad!) you may wish
to purchase one of the commercial Perl distributions on CD-Rom or other
media. Your local bookstore should be able to help you to find one.
Another possibility is to use one of the FTP-via-email services; for
more information on doing that, send mail to <mail-server@rtfm.mit.edu>
(not to me!) with these lines in the body of the message, flush left:
setdir usenet-by-group/news.announce.newusers
send Anonymous_FTP:_Frequently_Asked_Questions_(FAQ)_List
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
Comments and suggestions on the contents of this document
are always welcome. Please send them to the author at
<pfaq&finding*comments*@redcat.com>. Of course, comments on
the docs and FAQs mentioned here should go to their respective
maintainers.
Have fun with Perl!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Mon, 20 Sep 1999 09:26:06 -0400
From: jerrad pierce <jerrad@networkengines.com>
Subject: bibder IPC
Message-Id: <37E635EE.89CECACC@networkengines.com>
okay so what are pros 'n cons of using a UN*X domain socket vs two FIFO's (named pipes); one for each way?
------------------------------
Date: Mon, 20 Sep 1999 13:47:45 GMT
From: kragen@dnaco.net (Kragen Sitaker)
Subject: Re: Can I call a compiled C program from Perl?
Message-Id: <5WqF3.21887$N77.1755367@typ11.nn.bcandid.com>
In article <7s4mkr$2sj$1@news.ntu.edu.sg>,
Daniel Y.L. <linyong2000@990.net> wrote:
>$command = "./****"; #where, **** is your C program file name,
This will, of course, only work if the current working directory is the
directory where the executable lives. If he's running this from CGI
(which is my guess, since he talks about telnetting to a directory,
which is sort of like pedaling an orange) his current working directory
may be random.
>remember, there is the path;
>
>open (PIPEFROM, "$command|); #execute your C program to a PIPE;
Make sure you fix the quote on here before you try to run it.
--
<kragen@pobox.com> Kragen Sitaker <http://www.pobox.com/~kragen/>
Sun Sep 19 1999
50 days until the Internet stock bubble bursts on Monday, 1999-11-08.
<URL:http://www.pobox.com/~kragen/bubble.html>
------------------------------
Date: Mon, 20 Sep 1999 12:14:13 GMT
From: pudge@pobox.com (Chris Nandor)
Subject: Re: CONTEST: Range Searching
Message-Id: <pudge-2009990814200001@192.168.0.77>
In article <37E41015.3535E71E@mccarthy.org>, Jamie McCarthy
<jamie@mccarthy.org> wrote:
# Chris Nandor wrote:
#
# > # I am concerned that it still seems to
# > # emphasize the mentality of cleverness (which seems to cause obscurity).
# >
# > Why is that bad? It is an exercise. Consider it research.
#
# OK, here's another answer then:
To quote Spinal Tap, there's a fine line between stupid and clever. :)
--
Chris Nandor mailto:pudge@pobox.com http://pudge.net/
%PGPKey = ('B76E72AD', [1024, '0824090B CE73CA10 1FF77F13 8180B6B6'])
------------------------------
Date: Mon, 20 Sep 1999 12:22:16 +0200
From: "Steve Button" <steve.button@nl.origin-it.com>
Subject: Re: Encrypting (and decrypting) password
Message-Id: <0E16861EE7BCD111BE9400805FE6841F0B792F21@c1s5x001.cor.srvfarm.origin-it.com>
Ethan H. Poole wrote in message <37E2E0B9.BF23E68@ingress.com>...
>Steve Button wrote:
>>
>> >For simple encryption (and there isn't much point to anything more
complex
>> >if you are still passing everything cleartext including the initial
>> >login), you could use XOR encryption -- and making certain the key
>> >contained in the script's code does not become compromised.
>>
>> Yes, that's what I want to do! (for now) I assume you're suggeting that
I
>> simply XOR each of the characters with some (known) bitmask and then do
the
>
>You can do this on the server side. Later on you sound like you are
>talking about trying to implement this on the client side which would not
No. I'm planning all on the server side.
>
>You are not limited to an 8 bit XOR encryption function. You can create
Oh yeah. Duh. I Should have thought of that one.
>
>> >
>> >However, you had better make certain that there is some random data (but
>>
>> So, you mean that I should (for example) hold a table of 24 different
>> characters (keys) and use a different one depending upon the hour?
>> (obviously I will NOT do this now, as someone would just have to read
this
>> post.....)
>
>You could do something such as that. One simple method would be to take
>the value of time() (i.e. seconds since 1970) and subtracting (or adding)
Now there's a thought. Will have to think about this.
>
>Now, if we were discussing the storage of 'sensitive' data, such as credit
>card info, you would want to use (at a minimum) a public-key encryption
>method. The script would encode everything with its stored public key
>while you retain the private key in a secure location and supply it to the
>script only when you have a screen that needs to have the data decrypted.
>> >
>> >If you are looking for genuine encryption and not just something that
>> >makes life a tiny bit more complicated to ward off crackers you should
be
>> >using SSL and allowing the client and server to handle encrypting the
>> >entire data stream.
>>
>> Hmmmmmm. But that alone would not solve my initail problem would it? I
>> mean, if I just passed the password in the POST method (or whatever it
is)
>
>If your login page is done using the POST method (and not the GET method),
Oh, GET method then. I can never remember which is which.
Thanks for the help (everyone!)
Steve
--
HuntAHome http://www.huntahome.com
Properties throughout the UK and Europe
You can subscribe to receive a free daily email of all properties that match
your requirements (location, price, bedrooms)
You can advertise your property, with photograph, for free.
------------------------------
Date: Mon, 20 Sep 1999 15:18:42 +0200
From: "jeroen" <j_breedveld@hotmail.com>
Subject: how to change order files from readdir
Message-Id: <7s5c7e$evd$1@news1.xs4all.nl>
I use readdir to get list of files in a directory. When I do this the files
seem to be ordered alphabetically. Is there a way to change the way the
files are ordered, for example on size?
thanks jeroen
------------------------------
Date: Mon, 20 Sep 1999 13:20:38 GMT
From: Dan Sugalski <dan@tuatha.sidhe.org>
Subject: Re: how to change order files from readdir
Message-Id: <GwqF3.6384$xg5.130@news.rdc1.ct.home.com>
jeroen <j_breedveld@hotmail.com> wrote:
> I use readdir to get list of files in a directory. When I do this the files
> seem to be ordered alphabetically. Is there a way to change the way the
> files are ordered, for example on size?
readdir doesn't guarantee any ordering at all, though alphabetical is
typical. If you want to reorder the list, you'll have to do it yourself
once you've got the filenames.
Dan
------------------------------
Date: Mon, 20 Sep 1999 12:19:07 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: How to create files from CGI script?
Message-Id: <Pine.HPP.3.95a.990920121357.21215C-100000@hpplus03.cern.ch>
On Mon, 20 Sep 1999, I.J. Garlick wrote:
> No No No. Never do this put it just about anywhere else but never in or
^^^^^^^^
agreed...
> below cgi-bin. The only things you should ever put their are executables.
^^^^^
but could you clarify why you said that, please? Is there something
fundamental that I've missed, or is your concern based on the higher
risk of getting the configuration wrong for that lower level
subdirectory?
> Data files should live somewhere away from the URL tree, whtaever it may be.
Ah, I think you're concerned about the risk of "data" files being
accessed directly through the web server, instead of via the cgi scripts
as intended. Well, sometimes it's desirable to offer both.
If those data files were htpasswd (for example) and friends, then I
would tend to agree with you. Although it's possible to configure a web
server to deny access to those files even within the web tree, it's
surely safer not to leave oneself open to the risk.
ttfn
------------------------------
Date: Mon, 20 Sep 1999 12:49:13 GMT
From: ijg@connect.org.uk (I.J. Garlick)
Subject: Re: How to create files from CGI script?
Message-Id: <FICzM1.3yE@csc.liv.ac.uk>
In article <Pine.HPP.3.95a.990920121357.21215C-100000@hpplus03.cern.ch>,
"Alan J. Flavell" <flavell@mail.cern.ch> writes:
> On Mon, 20 Sep 1999, I.J. Garlick wrote:
>
>> No No No. Never do this put it just about anywhere else but never in or
> ^^^^^^^^
> agreed...
>
>> below cgi-bin. The only things you should ever put their are executables.
> ^^^^^
>
> but could you clarify why you said that, please?
Depends on ones definition of below. I meant any other directories on the
cgi-bin path. Eg. cgi-bin/another_dir/data_file. Some may be refer to this
as above. I get confused, I know what I meant. That unfortunately only
helps those with the legendary PSI::Esp module.
Mind you putting data files in the dir immediately below(above) cgi-bin on
most systems is even worse. It's generally the base URL directory of the
site, and everything tends to be accessible there.
--
Ian J. Garlick
ijg@csc.liv.ac.uk
Experience is that marvelous thing that enables you recognize a mistake
when you make it again.
-- F. P. Jones
------------------------------
Date: 20 Sep 1999 05:51:53 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: List files in a dir
Message-Id: <37e61fd9@cs.colorado.edu>
[courtesy cc of this posting mailed to cited author]
In comp.lang.perl.misc,
bart.lateur@skynet.be (Bart Lateur) writes:
:And what of systems where "ls" doesn't work?
That's not a valid excuse.
http://language.perl.com/ppt/src/ls/index.html
No one need ever be without tools anymore, and the "I don't have
a tool" whining may now justly fall upon deaf ears.
--tom
--
Computer Science is nothing more than the study of patterns of 0s and 1s
--Donald Knuth
------------------------------
Date: Mon, 20 Sep 1999 15:54:45 +0200
From: Andreas Kneifel <kneifan@pool.informatik.rwth-aachen.de>
Subject: list of lists
Message-Id: <37E63CA4.14C68107@pool.informatik.rwth-aachen.de>
Hello,
I`ve the following problem creating a lists, that contains lists:
push(@array1,@array2);
pushes every element of array2 as one element on array1, but not the
hole list/array as one element.
I hope this is possible without using references (because I have to puth
several lists on array1 that way, and build these lists by just one
loop.)
thanks
Andreas
------------------------------
Date: 20 Sep 1999 13:01:04 GMT
From: Greg Bacon <gbacon@cs.uah.edu>
Subject: New posters to comp.lang.perl.misc
Message-Id: <7s5b6g$9k6$2@info2.uah.edu>
Following is a summary of articles from new posters spanning a 7 day
period, beginning at 13 Sep 1999 14:06:29 GMT and ending at
20 Sep 1999 08:31:50 GMT.
Notes
=====
- A line in the body of a post is considered to be original if it
does *not* match the regular expression /^\s{0,3}(?:>|:|\S+>|\+\+)/.
- All text after the last cut line (/^-- $/) in the body is
considered to be the author's signature.
- The scanner prefers the Reply-To: header over the From: header
in determining the "real" email address and name.
- Original Content Rating (OCR) is the ratio of the original content
volume to the total body volume.
- Find the News-Scan distribution on the CPAN!
<URL:http://www.perl.com/CPAN/modules/by-module/News/>
- Please send all comments to Greg Bacon <gbacon@cs.uah.edu>.
- Copyright (c) 1999 Greg Bacon.
Verbatim copying and redistribution is permitted without royalty;
alteration is not permitted. Redistribution and/or use for any
commercial purpose is prohibited.
Totals
======
Posters: 256 (49.6% of all posters)
Articles: 375 (21.1% of all articles)
Volume generated: 613.2 kb (18.3% of total volume)
- headers: 280.8 kb (5,779 lines)
- bodies: 325.3 kb (11,189 lines)
- original: 242.4 kb (8,734 lines)
- signatures: 6.7 kb (175 lines)
Original Content Rating: 0.745
Averages
========
Posts per poster: 1.5
median: 1.0 post
mode: 1 post - 188 posters
s: 1.3 posts
Message size: 1674.3 bytes
- header: 766.8 bytes (15.4 lines)
- body: 888.4 bytes (29.8 lines)
- original: 661.8 bytes (23.3 lines)
- signature: 18.2 bytes (0.5 lines)
Top 10 Posters by Number of Posts
=================================
(kb) (kb) (kb) (kb)
Posts Volume ( hdr/ body/ orig) Address
----- -------------------------- -------
10 19.1 ( 7.2/ 11.9/ 6.9) makau@multimania.com
10 17.2 ( 7.0/ 8.6/ 4.0) Daniel Krajzewicz <krajzewicz@inx.de>
7 20.8 ( 4.9/ 15.9/ 15.9) "Nations, Marc [RICH6:A222:EXCH]" <mnations@americasm01.nt.com>
7 13.8 ( 5.4/ 8.4/ 5.3) "Chuck Burgess" <meridamx@enol.com>
6 11.0 ( 5.0/ 6.0/ 3.4) "Glenn Kauffman" <glenn.kauffman@worldnet.att.net>
5 7.5 ( 4.1/ 3.4/ 1.3) "Craig Vincent" <2bunnyhop@home.com>
5 9.1 ( 4.2/ 4.9/ 2.1) "Anthony Adams" <antoine@pacha.nl>
4 11.7 ( 3.5/ 8.1/ 3.7) caitlynhay@my-deja.com
4 5.3 ( 2.7/ 2.6/ 2.5) armadilloman@my-deja.com
4 8.2 ( 2.5/ 5.7/ 4.7) darkon@one.net (David Wall)
These posters accounted for 3.5% of all articles.
Top 10 Posters by Volume
========================
(kb) (kb) (kb) (kb)
Volume ( hdr/ body/ orig) Posts Address
-------------------------- ----- -------
20.8 ( 4.9/ 15.9/ 15.9) 7 "Nations, Marc [RICH6:A222:EXCH]" <mnations@americasm01.nt.com>
19.1 ( 7.2/ 11.9/ 6.9) 10 makau@multimania.com
17.2 ( 7.0/ 8.6/ 4.0) 10 Daniel Krajzewicz <krajzewicz@inx.de>
13.8 ( 5.4/ 8.4/ 5.3) 7 "Chuck Burgess" <meridamx@enol.com>
11.7 ( 3.5/ 8.1/ 3.7) 4 caitlynhay@my-deja.com
11.0 ( 5.0/ 6.0/ 3.4) 6 "Glenn Kauffman" <glenn.kauffman@worldnet.att.net>
9.1 ( 4.2/ 4.9/ 2.1) 5 "Anthony Adams" <antoine@pacha.nl>
8.4 ( 2.5/ 5.9/ 5.3) 3 Pat Trainor <ptrainor@bettyjo.downcity.net>
8.2 ( 2.5/ 5.7/ 4.7) 4 darkon@one.net (David Wall)
7.8 ( 0.6/ 7.2/ 7.2) 1 "news.csnet.nl" <renez@csnet.nl>
These posters accounted for 3.8% of the total volume.
Top 10 Posters by OCR (minimum of three posts)
==============================================
(kb) (kb)
OCR orig / body Posts Address
----- -------------- ----- -------
1.000 ( 15.9 / 15.9) 7 "Nations, Marc [RICH6:A222:EXCH]" <mnations@americasm01.nt.com>
1.000 ( 0.4 / 0.4) 3 "Andy Cragg" <andrew_cragg@csi.com>
0.958 ( 2.5 / 2.6) 4 armadilloman@my-deja.com
0.894 ( 5.3 / 5.9) 3 Pat Trainor <ptrainor@bettyjo.downcity.net>
0.843 ( 3.1 / 3.6) 3 chetohevia@my-deja.com
0.829 ( 4.7 / 5.7) 4 darkon@one.net (David Wall)
0.731 ( 0.8 / 1.0) 3 Andreas Tanner <tanner@ultra.math.uni-potsdam.de>
0.628 ( 5.3 / 8.4) 7 "Chuck Burgess" <meridamx@enol.com>
0.618 ( 2.0 / 3.3) 3 mikedel@ix.netcom.com
0.603 ( 1.3 / 2.2) 3 namille2@REMOVE.vt.edu
Bottom 10 Posters by OCR (minimum of three posts)
=================================================
(kb) (kb)
OCR orig / body Posts Address
----- -------------- ----- -------
0.603 ( 1.3 / 2.2) 3 namille2@REMOVE.vt.edu
0.584 ( 6.9 / 11.9) 10 makau@multimania.com
0.562 ( 1.2 / 2.1) 3 "Ishmael" <jgrot@spam.off.tso.cin.ix.net>
0.558 ( 3.4 / 6.0) 6 "Glenn Kauffman" <glenn.kauffman@worldnet.att.net>
0.485 ( 0.5 / 1.1) 3 Karl Hanmore <karl@bofh.com.au>
0.463 ( 4.0 / 8.6) 10 Daniel Krajzewicz <krajzewicz@inx.de>
0.454 ( 3.7 / 8.1) 4 caitlynhay@my-deja.com
0.440 ( 2.1 / 4.9) 5 "Anthony Adams" <antoine@pacha.nl>
0.395 ( 1.3 / 3.4) 5 "Craig Vincent" <2bunnyhop@home.com>
0.382 ( 1.1 / 3.0) 3 Chris Koharik <koharik@primenet.com>
19 posters (7%) had at least three posts.
Top 10 Crossposters
===================
Articles Address
-------- -------
6 caitlynhay@my-deja.com
4 Daniel Krajzewicz <krajzewicz@inx.de>
3 Danum Web <webmaster@danum.com>
3 "Maen Suleiman" <maen@packet-technologies.com>
2 les@Jupiter.mcs.net (Leslie Mikesell)
2 Computer Assisted Learning <cal99@math.ist.utl.pt>
2 dfavor@corridor.com
2 cguru@bigfoot.com (Computer Guru Internet Development)
2 skud+usenet@netizen.com.au (Kirrily 'Skud' Robert)
2 deviantfreak@yahoo.com (DF)
------------------------------
Date: 20 Sep 1999 07:30:21 GMT
From: ebohlman@netcom.com (Eric Bohlman)
Subject: Re: Newbie questions on list assignment
Message-Id: <7s4nqd$5u7@dfw-ixnews11.ix.netcom.com>
Lishan Song (lishans@evitech.fi) wrote:
:
: @mylist = qw(item1, item2, item3);
:
: @tmplist = @mylist; #???
:
: I have following questions on list assignment:
: - Is the assignment legal?
Yes.
: - If it is legal, are the values copied from @mylist or
: @tmplist is a reference to @mylist?
The former.
Also note that your initial assignment creates list items with trailing
commas. A visit to the perlop section on quoting operators is in order
for you.
------------------------------
Date: Mon, 20 Sep 1999 13:37:23 GMT
From: mike cardeiro <mikecard@my-deja.com>
Subject: OT: deja.com alters posts
Message-Id: <7s5dai$ev5$1@nnrp1.deja.com>
hi
I use deja.com for my newgroups and was just reading a message and i saw
a link in the message. the link appeared as:
merlyn@stonehenge.com
When i clicked on the link i got a deja.com internal server error so i
looked at the actual url within the link and saw this:
http://www.deja.com/[ST_rn=md]/[ST_artlink=www.stonehenge.com]/jump/http
://www.stonehen ge.com/merlyn/
I am sure this is not how the original poster coded the anchor adress.
It is not ethical to alter data in a usenet post (and if you're going to
do it the least you could do is make it work). this is alot different
from putting a tag at the end of somebody's message that was posted
through their system, that is fine, changing data in the actual message
is not.
sorry for the of topic post, i just had to vent
mike cardeiro
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Mon, 20 Sep 1999 07:50:20 -0400
From: "Robert W. Byrd" <tech@tburg.net>
Subject: Re: Programming Modules for Perl
Message-Id: <37E61F7C.CE9E3AD3@tburg.net>
Frederik bernard wrote:
>
> Hi everybody,
>
> does anybody know a good book or
> a good script in the net which gives
> me some good information
> about programming modules for
> perl?
>
> Thanks for any help,
>
> fred :-)
The Perl Resource Kit (which I finally found) contains all
manner of documentation on modules, including usage and
programming.
It may be difficult to find at this late time though, as
it has gone out of print.
.rob.
--
Robert W. Byrd | Completely Computer Friendly
tech@tburg.net | 67-B Oxford St., Tillsonburg, ON CA N4G 2G3
------------------------------------------------------------
We are dyslexic of Borg; prepare to have your ass laminated.
------------------------------
Date: Mon, 20 Sep 1999 10:26:48 GMT
From: pincky@my-deja.com
Subject: Re: Return values of stat( file )
Message-Id: <7s5251$7ev$1@nnrp1.deja.com>
Thanks for the help. I hadn't realised the return value
was in octal.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Mon, 20 Sep 1999 10:00:44 -0400
From: "Peter Icaza" <picaza@chsi.com>
Subject: s/// conditional substitution
Message-Id: <7s5ele$ca98$1@pike.uhc.com>
hi,
i would like to perform a conditional substitution based on what $2
matches. is this possible in one stmt?
# this is sorta what i want to do, the results follow:
if ($subsetCriteria[$X] =~ (s/(.*) +(in|ex)clude +'?(.*)\b'?\s+(.*)/$2 =~
\/in\/ ?V:^(_RC$Ctr = '1') $4/))
# results, :
in =~ /in/ ?V:^(_RC1 = '1') &
# desired results:
^(_RC1 = '1') &
# or
V(_RC1 = '1') &
###################################################################
# these stmts work but i dont like accessing the string twice
if ($subsetCriteria[$X] =~ (s/(.*) +(in|ex)clude +'?(.*)\b'?\s+(.*)/(_RC$Ctr
= '1') $4/))
{
if ($2 =~ /ex/)
{
$subsetCriteria[$X] =~ s/\(_RC/^\(_RC/;
}
is there a way to make it do what i want and not what im telling it to do?
am i niggling this point?
------------------------------
Date: 20 Sep 1999 13:01:03 GMT
From: Greg Bacon <gbacon@cs.uah.edu>
Subject: Statistics for comp.lang.perl.misc
Message-Id: <7s5b6f$9k6$1@info2.uah.edu>
Following is a summary of articles spanning a 7 day period,
beginning at 13 Sep 1999 14:06:29 GMT and ending at
20 Sep 1999 08:31:50 GMT.
Notes
=====
- A line in the body of a post is considered to be original if it
does *not* match the regular expression /^\s{0,3}(?:>|:|\S+>|\+\+)/.
- All text after the last cut line (/^-- $/) in the body is
considered to be the author's signature.
- The scanner prefers the Reply-To: header over the From: header
in determining the "real" email address and name.
- Original Content Rating (OCR) is the ratio of the original content
volume to the total body volume.
- Find the News-Scan distribution on the CPAN!
<URL:http://www.perl.com/CPAN/modules/by-module/News/>
- Please send all comments to Greg Bacon <gbacon@cs.uah.edu>.
- Copyright (c) 1999 Greg Bacon.
Verbatim copying and redistribution is permitted without royalty;
alteration is not permitted. Redistribution and/or use for any
commercial purpose is prohibited.
Excluded Posters
================
perlfaq-suggestions\@(?:.*\.)?perl\.com
Totals
======
Posters: 516
Articles: 1776 (944 with cutlined signatures)
Threads: 455
Volume generated: 3346.6 kb
- headers: 1382.2 kb (27,683 lines)
- bodies: 1791.4 kb (56,386 lines)
- original: 1251.7 kb (42,439 lines)
- signatures: 171.4 kb (3,573 lines)
Original Content Rating: 0.699
Averages
========
Posts per poster: 3.4
median: 1.0 post
mode: 1 post - 325 posters
s: 12.3 posts
Posts per thread: 3.9
median: 3 posts
mode: 2 posts - 115 threads
s: 4.8 posts
Message size: 1929.6 bytes
- header: 796.9 bytes (15.6 lines)
- body: 1032.9 bytes (31.7 lines)
- original: 721.7 bytes (23.9 lines)
- signature: 98.8 bytes (2.0 lines)
Top 10 Posters by Number of Posts
=================================
(kb) (kb) (kb) (kb)
Posts Volume ( hdr/ body/ orig) Address
----- -------------------------- -------
221 425.6 (163.4/216.9/138.2) kragen@dnaco.net (Kragen Sitaker)
88 160.5 ( 56.8/ 93.7/ 55.7) lr@hpl.hp.com (Larry Rosler)
86 141.2 ( 63.8/ 66.9/ 36.8) Jonathan Stowe <gellyfish@gellyfish.com>
67 181.4 ( 74.9/ 79.3/ 75.6) abigail@delanet.com
51 90.2 ( 41.0/ 43.3/ 22.5) David Cassell <cassell@mail.cor.epa.gov>
48 186.2 ( 38.9/141.1/131.5) tchrist@mox.perl.com (Tom Christiansen)
36 90.0 ( 31.9/ 44.5/ 24.9) Uri Guttman <uri@sysarch.com>
30 56.3 ( 25.7/ 24.2/ 17.3) mgjv@comdyn.com.au (Martien Verbruggen)
29 36.9 ( 23.3/ 13.6/ 9.3) Makarand Kulkarni <makkulka@cisco.com>
24 35.8 ( 13.3/ 22.4/ 11.4) Ala Qumsieh <aqumsieh@matrox.com>
These posters accounted for 38.3% of all articles.
Top 10 Posters by Volume
========================
(kb) (kb) (kb) (kb)
Volume ( hdr/ body/ orig) Posts Address
-------------------------- ----- -------
425.6 (163.4/216.9/138.2) 221 kragen@dnaco.net (Kragen Sitaker)
186.2 ( 38.9/141.1/131.5) 48 tchrist@mox.perl.com (Tom Christiansen)
181.4 ( 74.9/ 79.3/ 75.6) 67 abigail@delanet.com
160.5 ( 56.8/ 93.7/ 55.7) 88 lr@hpl.hp.com (Larry Rosler)
141.2 ( 63.8/ 66.9/ 36.8) 86 Jonathan Stowe <gellyfish@gellyfish.com>
90.2 ( 41.0/ 43.3/ 22.5) 51 David Cassell <cassell@mail.cor.epa.gov>
90.0 ( 31.9/ 44.5/ 24.9) 36 Uri Guttman <uri@sysarch.com>
56.3 ( 25.7/ 24.2/ 17.3) 30 mgjv@comdyn.com.au (Martien Verbruggen)
36.9 ( 23.3/ 13.6/ 9.3) 29 Makarand Kulkarni <makkulka@cisco.com>
36.0 ( 13.5/ 22.4/ 13.9) 21 ebohlman@netcom.com (Eric Bohlman)
These posters accounted for 42.0% of the total volume.
Top 10 Posters by OCR (minimum of five posts)
==============================================
(kb) (kb)
OCR orig / body Posts Address
----- -------------- ----- -------
1.000 ( 15.9 / 15.9) 7 "Nations, Marc [RICH6:A222:EXCH]" <mnations@americasm01.nt.com>
1.000 ( 4.7 / 4.7) 6 gabor@vmunix.com (Gabor)
0.977 ( 9.5 / 9.7) 9 pudge@pobox.com (Chris Nandor)
0.962 ( 16.0 / 16.6) 7 Greg Bacon <gbacon@cs.uah.edu>
0.953 ( 75.6 / 79.3) 67 abigail@delanet.com
0.943 ( 2.4 / 2.5) 5 Benjamin Schweizer <SternSZ@gmx.de>
0.932 (131.5 /141.1) 48 tchrist@mox.perl.com (Tom Christiansen)
0.921 ( 5.9 / 6.4) 7 "Matt King" <mattking@techie.com>
0.882 ( 14.6 / 16.5) 9 lee.lindley@bigfoot.com
0.877 ( 24.4 / 27.9) 8 mike@yawp.com
Bottom 10 Posters by OCR (minimum of five posts)
=================================================
(kb) (kb)
OCR orig / body Posts Address
----- -------------- ----- -------
0.463 ( 4.0 / 8.6) 10 Daniel Krajzewicz <krajzewicz@inx.de>
0.455 ( 10.9 / 24.0) 11 sholden@cs.usyd.edu.au
0.444 ( 3.5 / 7.9) 7 catfood@apk.net (Mark W. Schumann)
0.440 ( 4.8 / 10.9) 21 elephant@squirrelgroup.com (elephant)
0.440 ( 2.1 / 4.9) 5 "Anthony Adams" <antoine@pacha.nl>
0.395 ( 1.3 / 3.4) 5 "Craig Vincent" <2bunnyhop@home.com>
0.392 ( 1.8 / 4.5) 8 anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
0.379 ( 3.6 / 9.5) 7 Dan Sugalski <dan@tuatha.sidhe.org>
0.372 ( 3.1 / 8.2) 8 Bob Walton <bwalton@rochester.rr.com>
0.323 ( 1.0 / 3.1) 6 Tom Briles <sariq@texas.net>
61 posters (11%) had at least five posts.
Top 10 Threads by Number of Posts
=================================
Posts Subject
----- -------
49 CONTEST: Range Searching
35 trimming spaces from a string
29 Parsing Tab Delimited File
22 UNCRAP project proposal
21 Error in "Learning Perl, 2nd Edition" or Error in Perl port specific to Windows or ?
21 CGI cannot open relative path
19 Please help a newbie!
17 need to write www search engine
17 challenge results
16 Using a period as a delimiter in the split() function
These threads accounted for 13.9% of all articles.
Top 10 Threads by Volume
========================
(kb) (kb) (kb) (kb)
Volume ( hdr/ body/ orig) Posts Subject
-------------------------- ----- -------
133.2 ( 40.5/ 87.2/ 69.8) 49 CONTEST: Range Searching
68.5 ( 13.5/ 53.1/ 32.5) 16 Searching by date problem.
62.2 ( 26.9/ 32.0/ 21.5) 35 trimming spaces from a string
57.9 ( 22.9/ 31.0/ 20.9) 29 Parsing Tab Delimited File
55.5 ( 20.9/ 30.4/ 19.2) 22 UNCRAP project proposal
46.2 ( 6.0/ 39.3/ 32.5) 7 Lambda calculus stuff in Perl
39.6 ( 20.1/ 16.5/ 9.8) 21 Error in "Learning Perl, 2nd Edition" or Error in Perl port specific to Windows or ?
37.6 ( 14.0/ 21.3/ 15.8) 17 need to write www search engine
36.1 ( 17.9/ 15.6/ 9.0) 21 CGI cannot open relative path
34.8 ( 12.9/ 20.6/ 15.2) 16 Using a period as a delimiter in the split() function
These threads accounted for 17.1% of the total volume.
Top 10 Threads by OCR (minimum of five posts)
==============================================
(kb) (kb)
OCR orig / body Posts Subject
----- -------------- ----- -------
0.995 ( 16.1/ 16.2) 9 PERL/HTML Interaction problems with <ACTION... command
0.932 ( 6.4/ 6.9) 6 Giving names to arrays automatically
0.903 ( 7.5/ 8.3) 5 %HoH2=%HoH1 yields synonymity!?!
0.874 ( 17.2/ 19.6) 6 Quoting Strategies and the Jeopardy Game
0.871 ( 2.9/ 3.3) 5 Does Larry Wall ever post here?
0.859 ( 3.7/ 4.3) 6 And the band played Waltzing Matilda
0.856 ( 14.6/ 17.0) 15 List files in a dir
0.847 ( 3.6/ 4.2) 6 cookbook: nonforker
0.836 ( 2.5/ 2.9) 5 split comp.lang.perl.misc ?
0.831 ( 1.5/ 1.8) 5 testing data types
Bottom 10 Threads by OCR (minimum of five posts)
=================================================
(kb) (kb)
OCR orig / body Posts Subject
----- -------------- ----- -------
0.485 ( 8.3 / 17.0) 15 Design Advice needed on Sending Data to Client
0.474 ( 5.0 / 10.5) 7 PLEASE HELP! - Symbolic References
0.452 ( 1.8 / 3.9) 5 Unix and Perl script
0.437 ( 2.9 / 6.7) 8 rand questions
0.401 ( 1.1 / 2.6) 5 making 'find' follow soft links
0.398 ( 2.3 / 5.9) 9 Reading files on a remote server ????????
0.384 ( 2.1 / 5.6) 5 passing "=" as an argument to CGI
0.376 ( 1.9 / 4.9) 5 Case insensitive SQL query
0.368 ( 3.0 / 8.1) 6 Closing a pipeline before the command is done
0.304 ( 2.5 / 8.3) 7 Perl / C Memory
118 threads (25%) had at least five posts.
Top 10 Targets for Crossposts
=============================
Articles Newsgroup
-------- ---------
32 comp.lang.perl.moderated
30 comp.lang.perl.modules
28 comp.lang.perl
10 alt.perl
9 alt.www.webmaster
8 comp.os.linux
7 comp.os.linux.mis
6 alt.sysadmin.recovery
5 comp.databases.ms-access
3 comp.infosystems.www.authoring.html
Top 10 Crossposters
===================
Articles Address
-------- -------
10 kragen@dnaco.net (Kragen Sitaker)
6 David Cassell <cassell@mail.cor.epa.gov>
6 caitlynhay@my-deja.com
5 tchrist@mox.perl.com (Tom Christiansen)
5 Uri Guttman <uri@sysarch.com>
4 Makarand Kulkarni <makkulka@cisco.com>
4 Daniel Krajzewicz <krajzewicz@inx.de>
4 "Alan J. Flavell" <flavell@mail.cern.ch>
3 todd.rovito@stargate-tech.com
3 Jamie McCarthy <jamie@mccarthy.org>
------------------------------
Date: Mon, 20 Sep 1999 23:42:58 +1000
From: "Wesley Warren" <wcwarren@primus.com.au>
Subject: target frame in URL redirection
Message-Id: <937834693.380537@diddley.primus.com.au>
Hi,
I'm trying to specify a target frame in a URL redirection...
My guess doesn't work:
$go="http://www.URL.com/index.htm ";
print ("Location: $go\n\n" target="4_display_area");
How should I format the line?
Thanks,
Wes
------------------------------
Date: Mon, 20 Sep 1999 08:11:37 -0400
From: "Robert W. Byrd" <tech@tburg.net>
Subject: Thank you
Message-Id: <37E62479.D704DCD0@tburg.net>
Is this on-topic? Don't know... it is about Perl though...
At the risk of having a herd a camel lovers torch me for using
up bandwidth in their newsgroup, I present the following:
I have been reading this newsgroup for about three weeks now
and have seen all manner of questions, answers, and other
remarks. Some good, some not.
Perl is a remarkable language. The work started by Larry and
continued by rather large handful of others (you know who you
are... I'm not going to list names for fear of forgetting
someone) is somewhat awe inspiring.
The fact there are so many books dealing with Perl is also a
testament to it's fame and popularity (and I have purchased
nearly all of them!)
Very seldom does an end user have the opportunity to communicate
with the people who have worked on and enhanced a language like
we are able to in this newsgroup.
So... to all of you who have contributed not only to perl, but
also to this newsgroup, I offer my thanks. Without you, this place
would be nothing but a slim shadow.
"Kudos to you all!"
Respectfully,
.rob.
--
Robert W. Byrd | Completely Computer Friendly
tech@tburg.net | 67-B Oxford St., Tillsonburg, ON CA N4G 2G3
------------------------------------------------------------
We are dyslexic of Borg; prepare to have your ass laminated.
------------------------------
Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 16 Sep 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.
| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.
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.
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 854
*************************************