[18993] in Perl-Users-Digest
Perl-Users Digest, Issue: 1188 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Jun 25 11:10:42 2001
Date: Mon, 25 Jun 2001 08:10:12 -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: <993481811-v10-i1188@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Mon, 25 Jun 2001 Volume: 10 Number: 1188
Today's topics:
Re: problem on install perl module on NT platform (isterin)
Re: problem on install perl module on NT platform <torelg@hotmail.com>
Re: problem on install perl module on NT platform <pne-news-20010625@newton.digitalspace.net>
puzzled over fork() doing something different to book e <m.grimshaw@salford.ac.uk>
Re: puzzled over fork() doing something different to bo <buggs-clpm@splashground.de>
Re: Six degrees of separation (Greg Bacon)
Statistics for comp.lang.perl.misc <gbacon@cs.uah.edu>
using dbmopen() <patelnavin@icenet.net>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 25 Jun 2001 07:06:39 -0700
From: isterin@hotmail.com (isterin)
Subject: Re: problem on install perl module on NT platform
Message-Id: <db67a7f3.0106250606.5a606d9b@posting.google.com>
ELI@PELEPHONE.CO.IL (Eli) wrote in message news:<3e7e9299.0106242329.62ab66d1@posting.google.com>...
> HI FOLKS
> about how to install perl module on NT platform
> i have NT 4 with activePerl 5.6.0
> have problem to install the module
> for example :
> i have the Expect-1.11.tar module
> i run the following command
> ppm install Expect-1.11.tar
> and i get error message
> retrieving package Expect-1.11.tar
Try ppm install Expect
since specifying the version does not necessarily mean that this
version is available at activestate repository.
> could not locate a PPM binary of Expect-1.11.tar for this platform
> any idea ???
Means that Expect 1.11 is not available through activestate repository
as I mentioned above. I don't even know if they have any version of
it, but you can check the repository, see ppm docs for repository URL.
If they don't have it, and you have VC++ compiler installed you can
download and install from CPAN.
Have you installed any modules with ppm, since this might also be a
firewall issue. If you have a firewall see ppm docs on how to bypass
it.
Ilya
------------------------------
Date: Mon, 25 Jun 2001 16:22:50 +0200
From: "toreLG" <torelg@hotmail.com>
Subject: Re: problem on install perl module on NT platform
Message-Id: <8NHZ6.5261$sC3.90021@news1.oke.nextra.no>
Hi,
I have started using perl from Activestate a short time ago, and I
have had problems when trying to install modules.
It seems like ActivePerl likes to be installed in c:\perl.
When I first installed perl in a different location, perl reported
problems with my @INC variable every time I tried to install a module.
If you haven't installed perl in this standard location, then maybe
you should try installing perl here..
-----------
Here's how I would use the package manager PPM to install your module
from the command-line:
c:>ppm
PPM interactive shell (2.1.5) - type 'help' for available commands.
PPM> search expect
Packages available from
http://ppm.ActiveState.com/cgibin/PPM/ppmserver.pl?urn:/PPMServer:
'Expect [1.10] Expect for Perl
PPM> install expect
Install package 'expect?' (y/N): y
(... blah blah ...)
PPM> quit
Quit!
-----------
Hope it works out for you!
- toreLG@hotmail.com
"Eli" <ELI@PELEPHONE.CO.IL> wrote in message
news:3e7e9299.0106242329.62ab66d1@posting.google.com...
> HI FOLKS
> about how to install perl module on NT platform
> i have NT 4 with activePerl 5.6.0
> have problem to install the module
> for example :
> i have the Expect-1.11.tar module
> i run the following command
> ppm install Expect-1.11.tar
> and i get error message
> retrieving package Expect-1.11.tar
> could not locate a PPM binary of Expect-1.11.tar for this platform
> any idea ???
------------------------------
Date: Mon, 25 Jun 2001 16:48:06 +0200
From: Philip Newton <pne-news-20010625@newton.digitalspace.net>
Subject: Re: problem on install perl module on NT platform
Message-Id: <unjejtsd9t9rqpn24iklc386datfq6p81j@4ax.com>
On 25 Jun 2001 07:06:39 -0700, isterin@hotmail.com (isterin) wrote:
> ELI@PELEPHONE.CO.IL (Eli) wrote in message news:<3e7e9299.0106242329.62ab66d1@posting.google.com>...
> > could not locate a PPM binary of Expect-1.11.tar for this platform
> > any idea ???
>
> Means that Expect 1.11 is not available through activestate repository
Not quite. 'ppm install Expect-1.10.tar' would probably not work either,
because the name of the package is 'Expect' and not 'Expect-1.10.tar'.
Cheers,
Philip
--
Philip Newton <nospam.newton@gmx.li>
Yes, that really is my address; no need to remove anything to reply.
If you're not part of the solution, you're part of the precipitate.
------------------------------
Date: Mon, 25 Jun 2001 15:13:03 +0100
From: Mark Grimshaw <m.grimshaw@salford.ac.uk>
Subject: puzzled over fork() doing something different to book example
Message-Id: <3B3746EF.9AE22D10@salford.ac.uk>
Hi,
I'm investigating fork() and have typed in an example of it from a book
("Perl Interactive 5 Course" by the Waite Group Press, p468 in case
anyone has it).
Here's the script:
#!/usr/local/bin/perl -wl
use strict;
use FileHandle;
pipe(READ, WRITE);
WRITE->autoflush();
my $pid = fork;
if($pid == 0)
{
print "\t\t\tI'm the child. Be nice to me!\n";
close WRITE;
while(<READ>)
{
print "\t\t\tParent said: $_\n";
}
}
elsif(defined $pid)
{
print "I'm the parent. Please yell at my child.\n";
close READ;
while(<>)
{
print WRITE $_;
}
}
else
{
print "couldn't fork\n\n";
}
The only things I've added differently to the book are:
use strict;
and checking for an undef return from fork()
This is perl, version 5.005_02 built for IP22-irix
According to the book (and it seems logical too), my parent process will
execute first, then the child, then the parent, then the child etc. etc.
etc. The book claims I will get something like:
I'm the parent. Please yell at my child.
I'm the child. Be nice to me!
hi there
Parent said: hi there
goodbye
Parent said: goodbye
However, the result of running this script is:
hexie 593% ./fork.pl
I'm the child. Be nice to me!
I'm the parent. Please yell at my child.
hi there
Parent said: hi there
Parent said:
goodbye
Parent said: goodbye
Parent said:
(I type in 'hi there' and 'goodbye' at the command line.)
Not only does the child half-execute first (i.e. its first print
statement only), but the parent executes then the child does what it's
supposed to do but then immediately half-executes what it's supposed to
do again.
Any ideas?
------------------------------
Date: Mon, 25 Jun 2001 16:37:13 +0200
From: Buggs <buggs-clpm@splashground.de>
Subject: Re: puzzled over fork() doing something different to book example
Message-Id: <9h7i4m$e6d$07$1@news.t-online.com>
Mark Grimshaw wrote:
> Here's the script:
> #!/usr/local/bin/perl -wl
read about the -l switch
> According to the book (and it seems logical too), my parent process will
> execute first, then the child, then the parent, then the child etc. etc.
> etc. The book claims I will get something like:
It could. The processes will be scheduled by the kernel,
but you can't say which executes when.
> However, the result of running this script is:
>
> hexie 593% ./fork.pl
> I'm the child. Be nice to me!
The child got scheduled before the parent, not unusual.
Read your OS docu to get a finer grained understanding
of the kernel scheduling.
>
> I'm the parent. Please yell at my child.
>
> hi there
Actually perl reads this as
hi there\n
and you write it in your pipe as
hi there\n\n
because the -l switch appends \n on print()
> Parent said: hi there
>
>
> Parent said:
>
So you get two lines when you read the pipe
both a printed out
1. hi there\n
2. \n
Have fun,
Buggs
------------------------------
Date: Mon, 25 Jun 2001 12:39:55 -0000
From: gbacon@HiWAAY.net (Greg Bacon)
Subject: Re: Six degrees of separation
Message-Id: <tjec8rgg448o9e@corp.supernews.com>
In article <slrn9jdimm.4ve.dha@panix2.panix.com>,
David H. Adler <dha@panix.com> wrote:
: In article <tjcjr41p6ska74@corp.supernews.com>, Greg Bacon wrote:
:
: > I can go from Kibo to mjd in zero pages, Dave!!!
:
: Is Kibo perlish now? :-)
I should have said zero hops instead of zero pages:
<URL:http://www.apriori.net/~paz/kibo4.html>
Greg
--
There are better ways to earn a living than to prevent other people from
making use of one's contributions to computer science.
-- Knuth
------------------------------
Date: Mon, 25 Jun 2001 14:41:29 -0000
From: Greg Bacon <gbacon@cs.uah.edu>
Subject: Statistics for comp.lang.perl.misc
Message-Id: <tjejcotpjp8l7f@corp.supernews.com>
Following is a summary of articles spanning a 7 day period,
beginning at 18 Jun 2001 15:43:49 GMT and ending at
25 Jun 2001 16:04:43 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) 2001 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
faq\@(?:.*\.)?denver\.pm\.org
Totals
======
Posters: 321
Articles: 831 (317 with cutlined signatures)
Threads: 238
Volume generated: 1453.5 kb
- headers: 667.3 kb (13,462 lines)
- bodies: 746.7 kb (24,982 lines)
- original: 453.5 kb (16,456 lines)
- signatures: 38.6 kb (889 lines)
Original Content Rating: 0.607
Averages
========
Posts per poster: 2.6
median: 1 post
mode: 1 post - 189 posters
s: 4.0 posts
Posts per thread: 3.5
median: 3.0 posts
mode: 1 post - 58 threads
s: 2.9 posts
Message size: 1791.0 bytes
- header: 822.3 bytes (16.2 lines)
- body: 920.2 bytes (30.1 lines)
- original: 558.9 bytes (19.8 lines)
- signature: 47.5 bytes (1.1 lines)
Top 10 Posters by Number of Posts
=================================
(kb) (kb) (kb) (kb)
Posts Volume ( hdr/ body/ orig) Address
----- -------------------------- -------
39 64.3 ( 32.4/ 25.2/ 16.0) "Philip 'Yes, that's my address' Newton" <nospam.newton@gmx.li>
34 87.8 ( 27.3/ 58.5/ 25.7) Benjamin Goldberg <goldbb2@earthlink.net>
24 35.2 ( 20.9/ 14.1/ 9.3) Bart Lateur <bart.lateur@skynet.be>
21 36.4 ( 15.5/ 20.9/ 10.1) Anno Siegel <anno4000@lublin.zrz.tu-berlin.de>
17 39.4 ( 16.0/ 22.9/ 11.7) Ren Maddox <ren@tivoli.com>
15 33.2 ( 13.6/ 16.9/ 7.3) Bob Walton <bwalton@rochester.rr.com>
14 23.9 ( 10.3/ 13.6/ 8.4) Michael Carman <mjcarman@home.com>
12 18.5 ( 9.8/ 8.3/ 3.0) "John W. Krahn" <krahnj@acm.org>
12 17.0 ( 7.5/ 9.5/ 6.6) "David Soming" <davsoming@lineone.net>
11 14.1 ( 7.7/ 5.8/ 5.8) Rafael Garcia-Suarez <rgarciasuarez@free.fr>
These posters accounted for 23.9% of all articles.
Top 10 Posters by Volume
========================
(kb) (kb) (kb) (kb)
Volume ( hdr/ body/ orig) Posts Address
-------------------------- ----- -------
87.8 ( 27.3/ 58.5/ 25.7) 34 Benjamin Goldberg <goldbb2@earthlink.net>
64.3 ( 32.4/ 25.2/ 16.0) 39 "Philip 'Yes, that's my address' Newton" <nospam.newton@gmx.li>
39.4 ( 16.0/ 22.9/ 11.7) 17 Ren Maddox <ren@tivoli.com>
36.4 ( 15.5/ 20.9/ 10.1) 21 Anno Siegel <anno4000@lublin.zrz.tu-berlin.de>
35.2 ( 20.9/ 14.1/ 9.3) 24 Bart Lateur <bart.lateur@skynet.be>
33.2 ( 13.6/ 16.9/ 7.3) 15 Bob Walton <bwalton@rochester.rr.com>
29.7 ( 9.5/ 17.1/ 15.3) 11 Mark Jason Dominus <mjd@plover.com>
23.9 ( 10.3/ 13.6/ 8.4) 14 Michael Carman <mjcarman@home.com>
18.6 ( 8.4/ 10.2/ 6.1) 7 Tim Schmelter <tschmelter@statesman.com>
18.5 ( 9.8/ 8.3/ 3.0) 12 "John W. Krahn" <krahnj@acm.org>
These posters accounted for 26.6% of the total volume.
Top 10 Posters by OCR (minimum of five posts)
==============================================
(kb) (kb)
OCR orig / body Posts Address
----- -------------- ----- -------
1.000 ( 5.8 / 5.8) 11 Rafael Garcia-Suarez <rgarciasuarez@free.fr>
0.896 ( 15.3 / 17.1) 11 Mark Jason Dominus <mjd@plover.com>
0.800 ( 1.9 / 2.3) 5 Eli <ELI@PELEPHONE.CO.IL>
0.778 ( 3.9 / 5.0) 5 David H. Adler <dha@panix.com>
0.774 ( 5.3 / 6.8) 6 Sweth Chandramouli <sweth+perl@gwu.edu>
0.696 ( 3.8 / 5.4) 6 Zur Aougav <aougav@hotmail.com>
0.694 ( 6.6 / 9.5) 12 "David Soming" <davsoming@lineone.net>
0.684 ( 4.4 / 6.4) 9 "Aman Patel" <patelnavin@icenet.net>
0.675 ( 6.2 / 9.2) 10 nobull@mail.com
0.670 ( 4.6 / 6.9) 6 tadmc@augustmail.com
Bottom 10 Posters by OCR (minimum of five posts)
=================================================
(kb) (kb)
OCR orig / body Posts Address
----- -------------- ----- -------
0.439 ( 25.7 / 58.5) 34 Benjamin Goldberg <goldbb2@earthlink.net>
0.434 ( 7.3 / 16.9) 15 Bob Walton <bwalton@rochester.rr.com>
0.406 ( 1.7 / 4.2) 7 buggs <buggs-clpm@splashground.de>
0.382 ( 2.8 / 7.2) 6 efflandt@xnet.com
0.375 ( 1.4 / 3.6) 5 Tony Curtis <tony_curtis32@yahoo.com>
0.359 ( 3.0 / 8.3) 12 "John W. Krahn" <krahnj@acm.org>
0.330 ( 1.7 / 5.0) 6 isterin <isterin@hotmail.com>
0.322 ( 2.4 / 7.4) 8 "Stefan Serena" <sserena@freesurf.ch>
0.271 ( 0.8 / 2.9) 5 Robert Sherman <rsherman@ce.gatech.edu>
0.259 ( 0.9 / 3.5) 5 mark_chou@hotmail.com
43 posters (13%) had at least five posts.
Top 10 Threads by Number of Posts
=================================
Posts Subject
----- -------
20 Reference-problem
18 Why does this split not work?
15 passing variables the 'right' way
12 Regexps, using variables to get $1, $2, etc.
11 Fetching CGI data as a hash (was DBM in a CGI)
11 MAJOR perl bug
11 Install Perl on HP
10 help printing floating point
10 Perl Tutorials or E-Books
9 ord() and ...?
These threads accounted for 15.3% of all articles.
Top 10 Threads by Volume
========================
(kb) (kb) (kb) (kb)
Volume ( hdr/ body/ orig) Posts Subject
-------------------------- ----- -------
41.3 ( 16.7/ 22.1/ 10.1) 18 Why does this split not work?
36.9 ( 18.0/ 18.0/ 8.5) 20 Reference-problem
30.7 ( 12.9/ 15.8/ 10.1) 15 passing variables the 'right' way
24.1 ( 8.4/ 14.0/ 5.6) 11 Install Perl on HP
22.1 ( 3.0/ 18.9/ 10.4) 4 Help with Rewriting Application in OO Perl
21.5 ( 8.5/ 12.8/ 7.7) 12 Regexps, using variables to get $1, $2, etc.
19.6 ( 9.7/ 9.7/ 5.3) 11 Fetching CGI data as a hash (was DBM in a CGI)
19.3 ( 8.3/ 10.2/ 7.0) 11 MAJOR perl bug
17.4 ( 6.6/ 9.9/ 5.8) 8 Problem reading large files (dumb question?)
16.2 ( 5.8/ 9.7/ 6.5) 6 Perl *is* strongly typed (was Re: Perl description)
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.817 ( 4.4/ 5.3) 5 Searchin for .sh
0.766 ( 3.7/ 4.8) 6 [ map { @{ $_ || [ ] } } @$to ] (what does this mean?)
0.764 ( 4.7/ 6.2) 6 Mix JS variables - David Eff..
0.732 ( 1.2/ 1.7) 7 how can i compile a perl program
0.718 ( 1.5/ 2.1) 5 how does one go about assigning the ip address from gethostbyname to variable...
0.717 ( 7.0/ 9.8) 5 Converting COBOL numbers
0.709 ( 1.7/ 2.4) 6 Graphical user interfacing?
0.701 ( 2.8/ 4.0) 8 adding newline in binary files
0.700 ( 3.7/ 5.2) 7 simple reference question
0.696 ( 4.3/ 6.2) 8 fastest way to count lines in a bunch of files.
Bottom 10 Threads by OCR (minimum of five posts)
=================================================
(kb) (kb)
OCR orig / body Posts Subject
----- -------------- ----- -------
0.459 ( 2.4 / 5.1) 5 HowTo: Run a command in backticks as root?
0.458 ( 10.1 / 22.1) 18 Why does this split not work?
0.443 ( 1.3 / 2.9) 5 premature end of script or malformed header
0.435 ( 1.4 / 3.3) 5 parsing log file
0.400 ( 3.3 / 8.3) 5 File::Find skips the leaf nodes in a directory tree?
0.399 ( 5.6 / 14.0) 11 Install Perl on HP
0.389 ( 1.9 / 4.8) 5 Configuration problem
0.388 ( 1.5 / 3.8) 6 Perl variable
0.357 ( 2.3 / 6.5) 9 ord() and ...?
0.298 ( 1.7 / 5.6) 7 Simple Info Aggregation Perl Sample Scrip?
63 threads (26%) had at least five posts.
Top 10 Targets for Crossposts
=============================
Articles Newsgroup
-------- ---------
36 comp.lang.perl.modules
13 alt.perl
9 comp.lang.perl
7 comp.lang.perl.moderated
7 alt.perl.sockets
6 comp.unix.questions
6 comp.mail.sendmail
5 comp.unix.shell
5 comp.lang.perl.tk
1 comp.answers
Top 10 Crossposters
===================
Articles Address
-------- -------
9 Bart Lateur <bart.lateur@skynet.be>
6 Josef Moellers <josef.moellers@fujitsu-siemens.com>
4 * Tong * <sun_tong@users.sourceforge.net>
4 "scotth" <scott@generator.co.za>
4 Mark Jason Dominus <mjd@plover.com>
4 Demitri Borg <demitri-borg@home.com>
4 "John W. Krahn" <krahnj@acm.org>
4 vorxion@fairlite.com
4 Zur Aougav <aougav@hotmail.com>
3 Benjamin Goldberg <goldbb2@earthlink.net>
------------------------------
Date: Mon, 25 Jun 2001 19:49:12 +0530
From: "Aman Patel" <patelnavin@icenet.net>
Subject: using dbmopen()
Message-Id: <9h7h8k$c6aej$1@ID-93885.news.dfncis.de>
just a simple question. What kind of file does dbmopen() bind a hash to (BY
DEFAULT). I saw the perlfunc man page, and found that:
This binds a dbm(3), ndbm(3), sdbm(3), gdbm(3), or Berkeley DB file to a
hash.
But un-fortunately, they havent mentioned on the type of DB, file that it
binids the hash to by default. The manual also states how to tell the
dbmopen(), to use a kind of DB file, like this:
use DB_File; #tell dbmopen to use DB_File
dbmopen(....
....
dbmclose(...);
But if I remove the first line 'use DB_File', what will the program use.
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
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.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 V10 Issue 1188
***************************************