[7257] in Perl-Users-Digest
Perl-Users Digest, Issue: 882 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Aug 17 21:07:39 1997
Date: Sun, 17 Aug 97 18:00:22 -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 Sun, 17 Aug 1997 Volume: 8 Number: 882
Today's topics:
Re: Binary I/O: simple question? (Peter E. Pulsifer)
Re: Binary I/O: simple question? <rootbeer@teleport.com>
Calculating Days between two dates!! (MALIKSM4)
Re: Calculating Days between two dates!! (Network Operations Center)
Re: converting from hex <" darrell_johnson"@nmisq2.miss.nt.com>
Re: converting from hex <" darrell_johnson"@nmisq2.miss.nt.com>
Directory searching <annek@nortel.ca>
Evaluting Boolean expressions? (Michael Schuerig)
hel[p <mudd97@nac.net>
How do I find the system date/time? <IMS@wwwebspace.co.uk>
Re: How to use the Filter module? (Paul Marquess)
Re: HTML --> Perl conversion (Eric Bohlman)
Re: HTML --> Perl conversion <rootbeer@teleport.com>
Mailbot capabilities <schramm@one.net>
Re: perl question <ptrainor@aura.title14.com>
Re: Possible in Perl? Do it, I'll Pay ya! (brian d foy)
printf: how long can the format be? (Michael Schuerig)
TIEing a DB to a HASH <city@eik.bme.hu>
Re: TIEing a DB to a HASH (Paul Marquess)
Re: TIEing a DB to a HASH <rootbeer@teleport.com>
Win32 binary distribution 04 released (perl5.004_02 + o (Gurusamy Sarathy)
Digest Administrivia (Last modified: 8 Mar 97) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 17 Aug 1997 15:21:20 -0400
From: pulsifer@ppdpi4.ppd.nrl.navy.mil (Peter E. Pulsifer)
Subject: Re: Binary I/O: simple question?
Message-Id: <yatafigvcnj.fsf@ppdpi4.nrl.navy.mil>
In article <ebohlmanEF0B3w.Bs7@netcom.com> ebohlman@netcom.com (Eric Bohlman) writes:
pack() would probably be helpful.
Perl 4 has expired and gone to meet the Great Camel In The Sky. Bereft of
maintenance it sleep()'s in peace. If your sysadmin hadn't nailed it to
your filesystem it would be pushing up the daisies. It is an ex-Perl.
Gone, maybe, but its spirit lives on - in MacPerl, and in one unix machine
I'm working on - with NO real sysadmin.
My surrent solution is to use sprintf "%c%c%c" to write out my three characters
as characters. But I'm still wondering what the rules are (clearly, variables
do have data types in Perl, I just don't know how to change them).
Thanks for suggesting pack(), I'll look closer at it.
Peter Pulsifer [pulsifer@ppdu.nrl.navy.mil]
------------------------------
Date: Sun, 17 Aug 1997 14:53:31 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: "Peter E. Pulsifer" <pulsifer@ppdpi4.ppd.nrl.navy.mil>
Subject: Re: Binary I/O: simple question?
Message-Id: <Pine.GSO.3.96.970817145233.7035G-100000@julie.teleport.com>
On 17 Aug 1997, Peter E. Pulsifer wrote:
> In article <ebohlmanEF0B3w.Bs7@netcom.com> ebohlman@netcom.com (Eric Bohlman) writes:
> Perl 4 has expired and gone to meet the Great Camel In The Sky. Bereft of
> maintenance it sleep()'s in peace. If your sysadmin hadn't nailed it to
> your filesystem it would be pushing up the daisies. It is an ex-Perl.
>
>
> Gone, maybe, but its spirit lives on - in MacPerl,
MacPerl has had Perl5 support for many moons now.
> and in one unix machine I'm working on - with NO real sysadmin.
And you call that living? :-)
--
Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: 17 Aug 1997 18:49:24 GMT
From: maliksm4@aol.com (MALIKSM4)
Subject: Calculating Days between two dates!!
Message-Id: <19970817184900.OAA21893@ladder01.news.aol.com>
Hello,
I was trying to use the subroutine julian_day from the module Julianday.pm
but have a problem. I am not sure how to pass the parameters, year, month
and date to this routine. I tried passing parameters like 1997 for year,
02 for month and 03 for date but got a very weird result. (something in
decimals).
Could someone assist me.? Basically I was tring to calculate the # of days
between two dates.
Thanks.
------------------------------
Date: Sun, 17 Aug 1997 15:36:07 GMT
From: noc@REMOVEarkansas.net (Network Operations Center)
Subject: Re: Calculating Days between two dates!!
Message-Id: <33f718bd.2274949@news-in.anc.net>
I always like to keep these types of calculations simple:
# !/usr/bin/perl
#
require "timelocal.pl"
$DAY_SECONDS = 60 * 60 * 24;
$start_day = 1;
$start_month = 0;
$start_year = 97;
$end_day = 15
$end_month = 0;
$end_year = 97;
$start_time = &timelocal(0,0,0,$start_day,$start_month, $start_year);
$end_time = &timelocal(0,0,0,$end_day,$end_month,$end_year);
$diff = $end_time - $start_time;
print $diff / $DAY_SECONDS, "\n";
Basically, calculate the number of seconds between your two dates and
then divide that number by the number of seconds in a normal day. The
result is the number of days between your two dates.
Hope that helps!
On 17 Aug 1997 18:49:24 GMT, maliksm4@aol.com (MALIKSM4) wrote:
>Hello,
>
>I was trying to use the subroutine julian_day from the module Julianday.pm
>but have a problem. I am not sure how to pass the parameters, year, month
>and date to this routine. I tried passing parameters like 1997 for year,
>02 for month and 03 for date but got a very weird result. (something in
>decimals).
>
>Could someone assist me.? Basically I was tring to calculate the # of days
>between two dates.
>
>Thanks.
------------------------------
Date: Sun, 17 Aug 1997 18:22:53 -0400
From: Darrell Johnson <" darrell_johnson"@nmisq2.miss.nt.com>
Subject: Re: converting from hex
Message-Id: <33F779BD.46AC@nmisq2.miss.nt.com>
Terry Michael Fletcher - PCD ~ wrote:
>
> Scott Houck (scott@radix.net) so eloquently and verbosely pontificated:
> > sub tohex ($) {
> > return map{hex} unpack "xa2a2a2", shift;
> > }
>
> but that return needs to be evaluated in LIST context, not scalar. it
> needs a join or something. here is my version, but with the "#" optional:
>
> print "RGB value #4aBabe is (".rgbval(4aBabe).")\n";
> sub rgbval {
> shift =~ /#?(..)(..)(..)/;
> return join ",",map{hex}$1,$2,$3;
> }
But remember the original request:
Prince of Mystery wrote:
>I'm trying to take a hex rgb value (ala #ffffff) and convert it to a
>three member array of decimal equivalents for each of those values, r,
^^^^^
>g, and b.
I really like Scott's latest solution (I didn't know you could use 'x'
that way, this is the first time I've used "unpack"), but the "my
$input" was there because I thought directly "shift"ing the value into
the function might confuse the hacker formerly known as Prince (having
asked a fairly basic question). Terry's solution drops us back a couple
of postings worth of optimization to the original use of regexp's (my
own contribution was due to a random hit in the Camel Book when I was
figuring out how to do this with regexp's - "Hint: instead of writing
patterns like /(...)(..)(.....)/, use the unpack function. It's more
efficient.").
BTW - I was trying to write my code so the POM could choose to drop the
code wrapped in the "# relevant section" comments into his program
instead of just using the sub, in the format of the Scott's first try.
Also BTW - Hey POM, if you're still listening, are you writing a TCL
interpreter in Perl? If so, you'll probably want #rgb to be of variable
length, but with each digit the same length. Here's how:
#start code
$length = (length($input)-1)/3;
@outrgb = map{hex} unpack "x" . ("a$length" x 3), $input ;
#end code
Given #fff you get (15,15,15) given #ffffff you get (255,255,255) et
cetera. I leave input verification and normalizing these values as
exercises for the reader :)
Darrell Johnson
(Drop the *SPAMBEGONE* to reply)
Standard disclaimer: I said this as an individual, not as an employee.
Shameless self promotion: My contract here ends with this month and I'm
for hire. I also program in C, C++, Forth, TCL/TK (a bit), and 80x86
assembler (specializing in Pentium optimizations - the old kind, I don't
have an MMX to play around with). I have worked on a moderately large (
> 200 C++ classes) Windows project, optimizing legacy code (got a C batch program's runtime down from thirty minutes to thirty seconds in a few hours' coding), Curses-based utilities in Unix, and 3D model generation among other things.
------------------------------
Date: Sun, 17 Aug 1997 18:29:48 -0400
From: Darrell Johnson <" darrell_johnson"@nmisq2.miss.nt.com>
Subject: Re: converting from hex
Message-Id: <33F77B5C.14A1@nmisq2.miss.nt.com>
My shameless self promotion brought me shame after all. Here's how it
should have read:
Darrell Johnson
(Drop the *SPAMBEGONE* to reply)
Standard disclaimer: I said this as an individual, not as an employee.
Shameless self promotion: My contract here ends with this month and I'm
for hire. I also program in C, C++, Forth, TCL/TK (a bit), and 80x86
assembler (specializing in Pentium optimizations - the old kind, I don't
have an MMX to play around with). I have worked on a moderately large
(more than 200 C++ classes) Windows project, optimizing legacy code (got
a C batch program's runtime down from thirty minutes to thirty seconds
in a few hours' coding), Curses-based utilities in Unix, and 3D model
generation among other things.
------------------------------
Date: Sun, 17 Aug 1997 13:16:31 -0400
From: Anne Kumar <annek@nortel.ca>
Subject: Directory searching
Message-Id: <33F731EF.41C67EA6@nortel.ca>
Hi,
I was wondering if there was anyway to search hierarchically through
directories and replace items in those files. I've tried the chdir and
opendir but they seem to only work with one subdirectory and no other
directories below that level. If you have any suggestions please let
me know.
Thanks
------------------------------
Date: Sun, 17 Aug 1997 23:54:40 +0200
From: uzs90z@uni-bonn.de (Michael Schuerig)
Subject: Evaluting Boolean expressions?
Message-Id: <199708172354401070780@rhrz-isdn3-p13.rhrz.uni-bonn.de>
Is there a general module for evaluating Boolean expressions? I only
want to supply an "interpretation" that maps each non-logical symbol to
true/false or a set and have the module evaluate the resulting
truth-value or set.
Michael
--
Michael Schuerig I was thrown out of college for cheating on the
mailto:uzs90z@uni-bonn.de metaphysics exam; I looked into the soul
http://www.uni-bonn.de/~uzs90z/ of the boy next to me. -Woody Allen
------------------------------
Date: Sun, 17 Aug 1997 16:52:16 -0400
From: "Brian P. Moffatt" <mudd97@nac.net>
Subject: hel[p
Message-Id: <33F76480.3CBC@nac.net>
How can I test perl scripts on my win95 machine.
------------------------------
Date: Sun, 17 Aug 1997 21:37:13 +0100
From: David Anderson <IMS@wwwebspace.co.uk>
Subject: How do I find the system date/time?
Message-Id: <33F760F9.5AA48E57@wwwebspace.co.uk>
I'm writing a CGI script but don't know any commands to find the system
date/time. Can anyone help?
David Anderson
------------------------------
Date: 17 Aug 1997 21:29:48 GMT
From: pmarquess@bfsec.bt.co.uk (Paul Marquess)
Subject: Re: How to use the Filter module?
Message-Id: <5t7qgc$2s8$2@pheidippides.axion.bt.co.uk>
Haizhou Chen (hachen@cs.umn.edu) wrote:
: Hi,
: I am wondering how to use the Filter module. I downloaded the module from
: CPAN and read the man page. It didn't quite make sense to me.
: What I want to do is this: Filter my Perl source and produce something like
: #!/usr/local/bin/perl
: use MyFilter;
: *Il~k^j#%$%^*&&(()JGHIngtotyyy&&(((((!@#$%%nnnnudu
: .....
: .....
: And this this program can be decrypted and executed. Anybody has the
: experience of doing it?
Yes, I wrote it. What do you not understand?
Paul
------------------------------
Date: Sun, 17 Aug 1997 21:12:51 GMT
From: ebohlman@netcom.com (Eric Bohlman)
Subject: Re: HTML --> Perl conversion
Message-Id: <ebohlmanEF2tLF.56H@netcom.com>
Bart Lateur (bart.mediamind@tornado.be) wrote:
: Tom Phoenix <rootbeer@teleport.com> wrote:
: ...
: > while (<HTML>) { # Don't ask! :-)
: > chomp;
: > s/\\/\\\\/g;
: > print "$_\n";
: > }
: haven't you forgotten about "$" and "@"?
No, he remembered how to make them a non-issue:
: > print "#!/usr/bin/perl -w\n\nuse strict;\nprint <<'END_HTML';\n";
^ ^
Backslashes are the only special characters in single-quoted strings
(well, single quotes are special characters as well, but not in
here-documents).
------------------------------
Date: Sun, 17 Aug 1997 14:52:14 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Bart Lateur <bart.mediamind@tornado.be>
Subject: Re: HTML --> Perl conversion
Message-Id: <Pine.GSO.3.96.970817145142.7035F-100000@julie.teleport.com>
On Sun, 17 Aug 1997, Bart Lateur wrote:
> Tom Phoenix <rootbeer@teleport.com> wrote:
>
> >Somehow, I feel that you want the script anyway. :-) See whether you can
> >find some bugs in it. :-)
> haven't you forgotten about "$" and "@"?
Nope. Thanks for caring!
--
Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Sun, 17 Aug 1997 18:19:55 -0400
From: "R. Schramm" <schramm@one.net>
Subject: Mailbot capabilities
Message-Id: <5t7t81$g39$1@news.one.net>
Hello,
We have a database app that accepts and stores email addresses users enter
and then try to mail to those address on a nightly basis.
I need to modify a program to have some mailbot like capabilities:
1. Read bounced messages (to invalid servers or addresses) and
automagically remove them from my database.
2. Create a confirmation / positive contact message. Meaning, they sign
up, but before they are added, we send a mail, telling them to reply with
the word
ACCEPT, which will then put their query to the database.
I have been searching through the perl modules / scripts / and on the web,
and cannot find anything to do this. I suspect that the Mailbot module may
have these capabilities, but I could only find it as part of GetWeb and the
Mailbot module does not have any documentation that I could find in pod or
otherwise. MajorDomo appears only able to send mail, not execute
programs.
I am an intermediate perl'er - I got somewhat lost searching through the
MailBot module files (the OO stuff still throws me a little). Some
documentation and / or sample code for the module would be of great help.
Does anyone know of a script / module / COTS program that would allow me to
parse incoming mail messages and execute other programs depending on the
content? Anyone have a more intuitive example of Mailbot module?
TIA,
Also, if you could, please send a copy of your reply to rdschramm@scripps.co
m.
Rich Schramm
rdschramm@scripps.com
------------------------------
Date: Sun, 17 Aug 1997 19:53:48 -0400
From: Pat Trainor <ptrainor@aura.title14.com>
To: Dave Wolfe <david_wolfe@risc.sps.mot.com>
Subject: Re: perl question
Message-Id: <Pine.LNX.3.95.970817195000.10512B-100000@aura>
Thanks to everyone who helped me get this project up in time for my
new job.
After confusing everyone and making a fool of myself, the site is
at:
http://www.title14.com/FAQ
I made it to use only perl 5+, no libraries or modules, and DBM
files. I was looking for the lowest denominator. It comes in at 17k of
original code.
I learned a lot about perl doing it, and as a first programming
project it's fair!
Thanks to all who put up with my silly questions and obtuse subject
lines!
pat
:)
ptrainor@aura.title14.com
http://www.title14.com/resume
#$reality=$bandwidth!=spam;
"While it's true winning isn't everything-LOSING IS NOTHING!" -Ed Bighead
------------------------------
Date: Sun, 17 Aug 1997 15:50:35 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Possible in Perl? Do it, I'll Pay ya!
Message-Id: <comdog-ya02408000R1708971550350001@alice.walrus.com>
In article <01bca991$925928c0$61064696@KevinWork>, "Kevin Halleran" <khallera@hklaw.com> wrote:
>I posted yesterday to this group regarding this question. the only problem
>I'm having is with the sockaddr_in function. Please help.
perhaps if you described the problem someone could help :)
--
brian d foy <comdog@computerdog.com>
------------------------------
Date: Sun, 17 Aug 1997 23:54:38 +0200
From: uzs90z@uni-bonn.de (Michael Schuerig)
Subject: printf: how long can the format be?
Message-Id: <199708172354381070658@rhrz-isdn3-p13.rhrz.uni-bonn.de>
Just to be sure: Is the length of the format string in (s)printf
restricted? More to the point, I'm using printf in a CGI to insert just
one dynamic part into a form and I'd like avoid any nasties. (Template
or boilerplate are overkill for my purpose.)
Michael
--
Michael Schuerig And your wise men don't know how it feels
mailto:uzs90z@uni-bonn.de to be thick as a brick.
http://www.uni-bonn.de/~uzs90z/ -Jethro Tull, "Thick As A Brick"
------------------------------
Date: Sun, 17 Aug 1997 18:57:18 +0200
From: Varga Tamas <city@eik.bme.hu>
Subject: TIEing a DB to a HASH
Message-Id: <33F72D6E.2ECEDFE5@eik.bme.hu>
Hi,
I cannot resolve the situation below:
use DB_File;
use Fcntl;
tie( %db, DB_File, 'testdb' , O_RDONLY, 0444 ) or die "tie!";
while (($key,$val) = each %db) {
print $key, ' = ', $val , "\n";
untie( %db );
These lines work fine, but
print $db{'testentry'};
does not, while testentry is a valid key, and
print $#db;
gives the result -1.
Could someone explain what do I do wrong above ?
Regards,
Tom Varga
--
Tamas Varga - Technical University of Budapest
Department of Telecommunication and Telematics
http://www.sch.bme.hu/~city
city@eik.bme.hu
------------------------------
Date: 17 Aug 1997 21:18:48 GMT
From: pmarquess@bfsec.bt.co.uk (Paul Marquess)
Subject: Re: TIEing a DB to a HASH
Message-Id: <5t7pro$2s8$1@pheidippides.axion.bt.co.uk>
Varga Tamas (city@eik.bme.hu) wrote:
: Hi,
: I cannot resolve the situation below:
: use DB_File;
: use Fcntl;
: tie( %db, DB_File, 'testdb' , O_RDONLY, 0444 ) or die "tie!";
: while (($key,$val) = each %db) {
: print $key, ' = ', $val , "\n";
: untie( %db );
: These lines work fine, but
: print $db{'testentry'};
: does not, while testentry is a valid key, and
: print $#db;
: gives the result -1.
The $# syntax is for arrays, not hashes.
: Could someone explain what do I do wrong above ?
Was the database created by a C application? If so, there may be
terminating nulls at the end of the keys. Try this:
print $db{"testentry\0"};
If that doesn't help, please post more information about your system,
e.g the versions of Perl, DB_File, Berkeley DB, your operating system
name & version.
Paul
------------------------------
Date: Sun, 17 Aug 1997 14:56:04 -0700
From: Tom Phoenix <rootbeer@teleport.com>
To: Varga Tamas <city@eik.bme.hu>
Subject: Re: TIEing a DB to a HASH
Message-Id: <Pine.GSO.3.96.970817145402.7035H-100000@julie.teleport.com>
On Sun, 17 Aug 1997, Varga Tamas wrote:
> I cannot resolve the situation below:
>
> use DB_File;
> use Fcntl;
>
> tie( %db, DB_File, 'testdb' , O_RDONLY, 0444 ) or die "tie!";
>
> while (($key,$val) = each %db) {
> print $key, ' = ', $val , "\n";
>
> untie( %db );
>
> These lines work fine, but
> print $db{'testentry'};
> does not, while testentry is a valid key,
Some (most?) C programs which write DBM files use (and require) trailing
nul characters on key and value strings. What does this do?
print $db{"testentry\0"};
> and
> print $#db;
> gives the result -1.
That's because @db is empty. :-)
Hope this helps!
--
Tom Phoenix http://www.teleport.com/~rootbeer/
rootbeer@teleport.com PGP Skribu al mi per Esperanto!
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: 17 Aug 1997 23:55:44 GMT
From: gsar@engin.umich.edu (Gurusamy Sarathy)
Subject: Win32 binary distribution 04 released (perl5.004_02 + other goodies)
Message-Id: <5t8320$d71$1@nadine.teleport.com>
If you need to use Perl on either WindowsNT or Windows95, you'll
definitely want to check out:
$CPAN/authors/id/GSAR/perl5.00402-bindist04-bc.tar.gz
The README therein says it all:
Welcome to the binary distribution of Perl for the Win32 platform.
This distribution has been compiled using the Borland C++ compiler
(version 5.02). It is built around the latest production release of
Perl, version 5.004_02, which comes with Win32 support.
Please note that this distribution is not to be confused with
the pre-5.004 Perl port by the Activeware folks, or the binaries
they distribute (which are mostly referred to by "build" numbers).
This bundle contains almost everything you will need for using Perl
on Win32 platforms. It also contains everything needed to build,
test and install additional perl modules from CPAN that you may not
find in here, provided they use the standard MakeMaker extension
build tools. Since MakeMaker needs a `make' utility, a Win32 binary
of Dennis Vadura's `dmake' tool is supplied (see below for more on
`dmake'). For using this distribution to build extensions that need
a C compiler, you will also need either Borland C++ 5.02, or Visual
C++ (version 2.0 and later).
WHY WOULD YOU WANT THIS?
------------------------
+ You want to use perl on WindowsNT or Windows95, but you have
no C compiler (or at least not one that will build perl).
+ You seem to have the compiler stuff, but not the patience or
knowledge to deal with compiling perl and the various extensions.
And you are happy to continue using the binary distributions that
you know people are going to keep putting out once every half
moon. [May not be exactly every half moon, but you'll keep the
faith. Remember to give away that compiler you don't use :)]
+ You have one of the supported compilers that will build Perl,
but you want to jump-start your XSsively hardcore perl module
development by taking this shortcut. [But see the notes below
on `USING IT WITH YOUR C COMPILER' for some caveats about doing
this.]
+ You want a perl that is capable of doing sockets on Windows95,
and you just have Visual C++. [The Visual C++ libraries known to
date have a problem with sockets on Windows95, which might cause
you trouble. The Borland libraries, which this distribution was
built with, do not have the problem.]
INSTALLATION
------------
To install:
* Extract the archive so that the directory structure of the
files is preserved.
* `cd' to the top level directory.
* Type `install' (if in the command shell) or click on
`install.bat' (from the Explorer). If that refuses to run for
some reason, you can instead type `perl\bin\perl install.bat'
in the command shell. The setup process will ask a few
questions and will offer to generate HTML documentation from
the various files in the distribution. A full installation
requires about 20 megabytes of free space.
* Add the installed location of PERL.EXE to your `PATH'.
For instance, if you asked for things to be installed under
`e:\perl', add `e:\perl\bin' to your PATH.
* You will need to edit the contents of %NetConfig in
`lib\site\Net\Config.pm' to set the names of the servers
used by the libnet package.
PLATFORMS
---------
This binary distribution has been extensively tested only on WindowsNT.
Based on reports from others, I believe it also works on Windows95,
but I personally did not test it on that platform. Note the supplied
binaries are for the x86 architecture.
WHAT IT CONTAINS
----------------
It includes the following packages:
perl5.004_02
dmake-4.1
Alias-2.3
Bit-Vector-4.2
Curses-1.01 [*]
Data-Dumper-2.07
DateCalc-3.2
DateManip-5.10
DBD-ODBC-0.16
DBI-0.89
Devel-Peek-0.83
Devel-Symdump-2.00
DProf-19970614 [*]
GD-1.14 [*]
libnet-1.0505 [*]
libwin32-0.08
libwww-perl-5.11
MD5-1.7
MIME-Base64-2.03
MLDBM-1.23
Storable-0.5 [*]
String-Approx-2.1
Tk402.002
NOTES:
[*] These packages needed porting or other fixes to compile and
run properly. All changes are included in the form of patches
(the kind that can be applied using the GNU patch utility) in
the `patches' subdirectory. The full sources of all of
these packages (with the exception of dmake, see below for that)
can be found on the Comprehensive Perl Archive Network (CPAN).
Point your web browser at "http://www.perl.com/CPAN" to find the
CPAN site nearest you.
The package subdirectories under `distfiles' also contain other
documentation and testsuites that came with the package. These are
not installed, so you may want to save them for later reference.
Please note that the patches are for information purposes only.
You don't have to apply them (or even know what a patch is) to use
this distribution.
In case you find yourself needing to build things from source, there
is a win32 port of GNU patch-2.1 at:
http://www-personal.umich.edu/~gsar/patch2_1-win32.tar.gz
that can be used to apply the included patches.
The modules in the distribution doubtless reflect my own personal
pattern of use. In some cases, I made a conscious decision not to
include modules that don't contain C or XS source, since it should be
possible to obtain, build and install such modules from CPAN without
too much trouble (or a C compiler), using perl and `dmake'.
Nevertheless, I shall add specific modules to the distribution if
there is demand.
DEMOS
-----
After you install the distribution and add its location to your PATH,
you can run the `widget' demo to check if your installed perl is
working properly. To make sure your new PATH setting takes effect,
you may have to reboot. Afterward, just type `widget' in the command
shell, or double-click on `widget.bat' from the Explorer.
DOCUMENTATION
-------------
If you choose, the installation process converts all the Plain Old
Documentation it can find into HTML pages. There are normally stored
in the `html' subdirectory under the install location. You can start
browsing the main perl documentation at `html/lib/pod/perl.html'.
If you choose not to install HTML, you can still browse almost
all of the perl documentation from the command line using `perldoc'.
Type `perldoc perldoc' to get started.
The `distfiles' area of the distribution also contains much HTML
documentation that is not handled by the install process. You
may want to selectively copy parts of it to wherever you normally
install your web documents.
USING IT WITH YOUR C COMPILER
-----------------------------
If you don't have a supported C compiler, this section doesn't
apply to you. If you have one, and intend using it to build
other modules that require a C compiler, then read on.
This distribution was compiled with Borland C++ 5.02, using `dmake'.
If you too have that compiler (or a later version), there are
no caveats about using this distribution for further builds of
extensions. (I have heard earlier versions of Borland C++ have
a buggy linker that doesn't like the module definition files that
perl generates, so your mileage may vary if you're using
versions earlier than 5.02.)
If you don't have the Borland compiler, it is also possible to build
and use extension binaries compiled with Visual C++. The converse--
using a perl binary built under Visual C++ with extension binaries
built under Borland C++--does not work due to a bug in the Visual
C++ linker (present as of version 5.0). In other words, if you have
the Visual C++ compiler *and* you plan to use some pre-built
extensions in this distribution *and* compile some of your own using
the Visual C++ compiler, you will need the perl binaries that came
with this distribution. So don't overwrite the perl binary with
one that you may have built yourself using the Visual C++ compiler.
The setup procedure will do the necessary things to make sure the
installed version of the `lib\Config.pm' file will work with your
compiler for future extension builds.
TERMS OF USE
------------
Perl can be freely distributed under the `Artistic License' or the
`GNU General Public Licence', described in the two files `Artistic'
and `Copying' respectively. Most of the modules have statements to
the effect that they can be distributed under the same terms as Perl,
but you should download and check the individual module's sources to
be sure.
The included dmake tool is compiled from the latest public release of
dmake-4.1 available from `ftp://plg.uwaterloo.ca/pub/dmake/'. The
binary is completely unsupported. Full (commercial) support for dmake
may be obtained from its author. See `http://dmake.wticorp.com/' for
the latest. Note that public version of dmake-4.1 can only be
distributed under the GNU General Public Licence.
The remaining parts of this binary distribution itself can be
distributed under the same terms as Perl. Beware that it is provided
"as is", and comes with absolutely no warranty of any kind, either
express or implied. If you use the contents of this distribution, you
do so at your own risk, and you agree to free the author(s) of any
consequences arising from such use, either intended or otherwise.
BEING NICE TO NICE BEINGS
-------------------------
Perl is the creation of Larry Wall. Continuing refinement of Perl
is made possible by the unceasing efforts of many fine folk who have
banded together with Larry in endless perlesque banter, collectively
calling themselves "The Perl Porters". If you find perl useful
in getting your job done, you may want to drop them a note of
appreciation at <perl-thanks@perl.org>. Be sure to recount
any war stories about how Perl helped you win your battles :)
Another fine way to encourage development of perl is to become a
member of The Perl Institute, a non-profit organization which helps
"people help Perl help people" (or something like that). See
http://www.perl.org/ for details.
If you plan to put this on a CDROM or other similar media, I request
that you send me a brief message. Note that some modules explicitly
require that you obtain permission from the module author to do that
sort of thing, so you should. Altered versions of this distribution
must be clearly marked as such.
Enjoy!
Gurusamy Sarathy (Just Another Perl Porter)
gsar@umich.edu
08-AUG-1997
------------------------------
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 882
*************************************