[12294] in Perl-Users-Digest
Perl-Users Digest, Issue: 5894 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Jun 4 21:07:24 1999
Date: Fri, 4 Jun 99 18:00:18 -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 Fri, 4 Jun 1999 Volume: 8 Number: 5894
Today's topics:
Re: Copying any files <mickv@home.com>
Re: Efficient way to extract form tags from an HTML pag <cassell@mail.cor.epa.gov>
Re: Efficient way to extract form tags from an HTML pag <rootbeer@redcat.com>
Re: Expect problem on NT <jwarner@tivoli.com>
Re: feel like i'm going crazy... (Abigail)
Re: Help Killing Zombies <rootbeer@redcat.com>
HTML in Email olmert@netvision.net.il
Re: I don't understand this warning: <jmschwa@airmail.net>
Lynx and Perl <colt@internet.net>
Re: mail problems... still :) (Abigail)
Re: multiple windows using Perl/Tk <cassell@mail.cor.epa.gov>
Re: Password Generator (Abigail)
Re: Perl and Scheduling Tasks <cassell@mail.cor.epa.gov>
Re: Perl and Scheduling Tasks <cassell@mail.cor.epa.gov>
Re: Perl, Y2K, and idiots <kristina@greatbasin.net>
Please -> Binary Files - Thanks <Nuno.Felicio@bigfoot.com>
Re: Please -> Binary Files - Thanks <rootbeer@redcat.com>
Re: Please -> Binary Files - Thanks <tchrist@mox.perl.com>
Re: Simple question about hashes (Eric Bohlman)
Sorting Multidimensional Lists follansb@real.com
using MIME::Lite to send attachments <justisd@mnl.com>
Very very short tutorial about modules (Mark-Jason Dominus)
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 04 Jun 1999 23:18:56 GMT
From: "Michael Villeneuve" <mickv@home.com>
Subject: Re: Copying any files
Message-Id: <A9Z53.49775$tE.487097@news2.rdc1.on.home.com>
As a last resort, you could use your system's copy command. I'll advise you
to be very careful with this. If there were a 'del' or 'rm' wrongly placed,
you may lose files. I usually avoid using it unless I can be sure that it
doesn't use anything entered by the end user.
Cheers,
Mike Villeneuve
mickv@home.com
WIN example:
$nervous = sprintf("copy %s %s", $first_file, $second_file);
system ($nervous);
UNIX example:
$nervous = sprintf("cp %s %s", $first_file, $second_file);
system ($nervous);
Alar Pandis wrote in message <7j8ubr$lg0$1@kadri.ut.ee>...
>Hi again!
>
>I did that, but result is that by example Word-files or ZIP-files is copied
>not correctly. I got the same result if I did this via OPEN FILE and PRINT
>etc.
>What I am doing wrong? (With TXT-files is OK!, as usually.)
>
>Thanks again,
>Alar.
>
>Jonathan Stowe <gellyfish@gellyfish.com> wrote in message
>news:<3757f71c@newsread3.dircon.co.uk>...
>> Alar Pandis <Alar@mtk.ut.ee> wrote:
>> > Hi, Jonathan!
>> > Thanks.
>> >
>> > Can You give example how can I use modules? I have file A and need copy
>this
>> > file into location B.
>> >
>>
>> perldoc File::Copy
>>
>> NAME
>> File::Copy - Copy files or filehandles
>>
>> SYNOPSIS
>> use File::Copy;
>>
>> copy("file1","file2");
>>
>>
>> /J\
>> --
>> Jonathan Stowe <jns@gellyfish.com>
>>
>
>
------------------------------
Date: Fri, 04 Jun 1999 17:06:08 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: Efficient way to extract form tags from an HTML page.--Suggestions?
Message-Id: <375869F0.65226E87@mail.cor.epa.gov>
Jamie Jackson wrote:
>
> On Fri, 4 Jun 1999 14:07:00 -0700, Tom Phoenix <rootbeer@redcat.com>
> wrote:
> >Try HTML::Parser, from CPAN. Cheers!
>
> I'd like to stay away from a module for this, and use standard Perl.
> I'm trying to learn more about regular expressions, matching, etc.
Well, if you really don't want to *use* the HTML::Parser
module, you could still download it as example code. You
won't find many better-constructed HTML parsers anywhere, and
it will help you grok some of the uglier ins and outs of
parsing really general HTML.
In particular, a simple regex will *not* cut it. And even
a really hideous regex may still not do everything you need
for you own app, while becoming nearly impossible for you
to decode when you come back to it in three months.
Take a look in the FAQ [perlfaq9], and you'll find several
good reasons why the simple solutions like
s/<.*?>//g;
fail in the real world. You can also follow that answer
to a URL for Tom Christiansen's striphtml.pl program
which does a very nice job in only 3 [count 'em, 3] steps.
HTH,
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician
------------------------------
Date: Fri, 4 Jun 1999 17:05:05 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Efficient way to extract form tags from an HTML page.--Suggestions?
Message-Id: <Pine.GSO.4.02A.9906041652520.5411-100000@user2.teleport.com>
On Fri, 4 Jun 1999, Jamie Jackson wrote:
> On Fri, 4 Jun 1999 14:07:00 -0700, Tom Phoenix <rootbeer@redcat.com>
> wrote:
> >Try HTML::Parser, from CPAN. Cheers!
>
> I'd like to stay away from a module for this, and use standard Perl.
Okay.... But, just so you know, modules are standard Perl.
> I'm trying to learn more about regular expressions, matching, etc.
>
> Thanks, Tom, for the suggestion.
>
> Any other takers? :)
Honestly, you can't properly parse HTML with any simple regular
expression. Even if all you want to do is remove all tags (and only tags)
from a document, you'll need something pretty complex. Unless you don't
care about doing it correctly. :-)
But if you really do want to reinvent the wheel, you should start with a
recent version of the HTML spec and see what it's all about. There's a
reason the spec is hundreds of pages long, though.... :-)
http://www.w3.org/TR/REC-html40/
Good luck with it!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Fri, 04 Jun 1999 16:55:34 -0500
From: John Warner <jwarner@tivoli.com>
Subject: Re: Expect problem on NT
Message-Id: <37584B56.D976351@tivoli.com>
Download the source and use make (Gnu) or nmake (Visual C++) instead. I
have found that nine times out of ten, doing it that way works far
better. One word of caution, I have discovered that many Perl module
installations assume that the core Perl header files are in your
compiler's include directory (or somewhere in your path). To get around
this, copy the appropriate header files to the correct location and you
are off to the races.
nunzio1714@my-deja.com wrote:
> I'm trying to run perl scripts using the Expect.pm
> module on an NT box. I've installed activestate
> perl and downloaded and copied all applicable *.pm
> for CPAN (Stty.pm, Pty.pm, Expect.pm). The Install
> readme form CPAN says to copy the *.pm files to
> directories in the @INC array. I've done that but
> when I run a simple script:
[stuff omitted]
--
John Warner Tivoli Systems Inc.
Sales Support Engineer 9442 Capital Of Texas Hwy North
Sales Infrastructure Group Austin, TX 78759
john_warner@tivoli.com
------------------------------
Date: 4 Jun 1999 18:50:27 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: feel like i'm going crazy...
Message-Id: <slrn7lgpv9.jgo.abigail@alexandra.delanet.com>
Bastiaan S van den Berg (office@asc.nl) wrote on MMCI September MCMXCIII
in <URL:news:7j37ov$qcr$1@zonnetje.NL.net>:
__ guess what ..
__
__ i've just dailed my ISP , and they won't allow me access to the server
__ logs!!!!
Then use CGI::Carp;
Abigail
--
perl -e '$a = q 94a75737420616e6f74686572205065726c204861636b65720a9 and
${qq$\x5F$} = q 97265646f9 and s g..g;
qq e\x63\x68\x72\x20\x30\x78$&eggee;
{eval if $a =~ s e..eqq qprint chr 0x$& and \x71\x20\x71\x71qeexcess}'
-----------== 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: Fri, 4 Jun 1999 15:21:32 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Help Killing Zombies
Message-Id: <Pine.GSO.4.02A.9906041514050.10794-100000@user2.teleport.com>
On Fri, 4 Jun 1999, Eric Hawkins wrote:
> Newsgroups: comp.lang.perl.misc, comp.lang.perl.moderated,
> comp.lang.perl.modules
This doesn't seem to have anything to do with modules, so I'm setting
followups to c.l.p.moderated.
> I was wondering if someone could give
> me some slick way to kill zombie processes from within Perl.
Have you seen what the FAQ says about this in section eight?
> system "kill -9 $proc[1]";
Signal 9 should be your last, not first, way of getting rid of a process.
(Try HUP and then INT before you pull out the big gun.) And it won't get
rid of a zombie, anyway. And, if you must kill, you can do so from within
Perl.
Cheers!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Fri, 04 Jun 1999 22:56:09 GMT
From: olmert@netvision.net.il
Subject: HTML in Email
Message-Id: <7j9li6$q3m$1@nnrp1.deja.com>
Hello,
How can I impliment HTML tags inside an email message generstaed from a
CGI? I have a CGI based on Matt's formmail script, that sends an
email. I would like to be able to customize the look of this email by
using HTML tags inside the message's body. Any ideas?
Thanks,
Shaul.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Fri, 04 Jun 1999 18:40:35 -0500
From: Josh Martel <jmschwa@airmail.net>
Subject: Re: I don't understand this warning:
Message-Id: <AC86EC880D4E8D51.0873ED2D68E5239C.DB8F6B31DAB7D3B8@lp.airnews.net>
Thank you very much for all the advice. I'll follow it.
/Josh
jmschwa@airmail.net
John Porter wrote:
>
> In article
> <E53168E01BAD1FB9.A1A060B4BEDA3F44.6F7E89B043948699@lp.airnews.net>,
> Josh Martel <jmschwa@airmail.net> wrote:
> >
<...>
------------------------------
Date: Sat, 5 Jun 1999 08:35:24 +0800
From: "CWK" <colt@internet.net>
Subject: Lynx and Perl
Message-Id: <7j9qp8$gbb$1@justice.csc.cuhk.edu.hk>
I would like to write a perl program to make use of Lynx to get files from
another site. How can I redirect the output
from the Lynx program, but not by writing to a file at first, to achieve
this?
I've tried the following with NO success:-
@!/usr/bin/perl
.......
'lynx http://www.abc.def/~xyz/file'
.......
Actually, I've also tried to redirect the output to a file inside Perl. But
it does not work. Why?
Please help this beginner to Perl. Thanks in advance.
------------------------------
Date: 4 Jun 1999 18:59:01 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: mail problems... still :)
Message-Id: <slrn7lgqfa.jgo.abigail@alexandra.delanet.com>
Bastiaan S van den Berg (office@asc.nl) wrote on MMCIII September
MCMXCIII in <URL:news:7j7rpm$rtu$1@zonnetje.NL.net>:
() i don't use module x because my isp only has 2 modules installed , cpan db
() and some other db variant..
Then install the modules yourself. Djees.
Abigail
--
perl -MLWP::UserAgent -MHTML::TreeBuilder -MHTML::FormatText -wle'print +(
HTML::FormatText -> new -> format (HTML::TreeBuilder -> new -> parse (
LWP::UserAgent -> new -> request (HTTP::Request -> new ("GET",
"http://work.ucsd.edu:5141/cgi-bin/http_webster?isindex=perl")) -> content))
=~ /(.*\))[-\s]+Addition/s) [0]'
-----------== 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: Fri, 04 Jun 1999 17:14:14 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: multiple windows using Perl/Tk
Message-Id: <37586BD6.11FDBA95@mail.cor.epa.gov>
tkd_black_belt@my-deja.com wrote:
>
> Can anyone point me at example(s) of Perl/Tk
> applications that have child windows called from
> child windows?
I haven't seen an answer to your question yet. So you
might want to ask in the comp.lang.perl.tk newsgroup
instead, where Perl/Tk people are the majority. You
should be able to get plenty of help there.
But before you post there, you might want to check out:
http://w4.lns.cornell.edu/~pvhp/ptk/ptkFAQ.html
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
I thought that was:
"Share what you don't know is wrong.
Learn what you can't be sure is right."
HTH,
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician
------------------------------
Date: 4 Jun 1999 18:33:28 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: Password Generator
Message-Id: <slrn7lgove.jgo.abigail@alexandra.delanet.com>
Bill Jones (bill@fccj.org) wrote on MMCIII September MCMXCIII in
<URL:news:37571f74.0@usenet.fccj.cc.fl.us>:
**
** Easy to remember and secure do not
** really go together :)
Neither does hard to remember and secure.
Abigail
--
perl -MTime::JulianDay -lwe'@r=reverse(M=>(0)x99=>CM=>(0)x399=>D=>(0)x99=>CD=>(
0)x299=>C=>(0)x9=>XC=>(0)x39=>L=>(0)x9=>XL=>(0)x29=>X=>IX=>0=>0=>0=>V=>IV=>0=>0
=>I=>$r=-2449231+gm_julian_day+time);do{until($r<$#r){$_.=$r[$#r];$r-=$#r}for(;
!$r[--$#r];){}}while$r;$,="\x20";print+$_=>September=>MCMXCIII=>()'
-----------== 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: Fri, 04 Jun 1999 16:44:49 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: Perl and Scheduling Tasks
Message-Id: <375864F1.8495148F@mail.cor.epa.gov>
Tom Christiansen wrote:
>
> [courtesy cc of this posting mailed to cited author]
>
> In comp.lang.perl.misc, "Jalil Feghhi" <jalil@corp.home.net> writes:
> :Is there any support for doing task scheduling in Perl for win32?
>
> Win32 has tasks?
Hey, of course it does!
Why here's a partial list right here under the C:\Windows\Tasks
directory:
[001] Take over the planet.
...
[172] Frustrate Tom Christiansen and drive him to the brink
of madness.
...
[233] Lure Dick Hardt into a sense of complacency, and then..
and then.. IT WILL ALL BE MINE! BWAHAHAHA!
...
Gosh, that's not at all what I thought was going to be
found in that directory.
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician
------------------------------
Date: Fri, 04 Jun 1999 16:53:01 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: Perl and Scheduling Tasks
Message-Id: <375866DD.D5041331@mail.cor.epa.gov>
Jalil Feghhi wrote:
>
> Is there any support for doing task scheduling in Perl for win32?
You might have better luck asking win32-specific questions in
one of the win32-perl listservs that you can subscribe to at:
http://www.activestate.com/support/mailing_lists.htm
The perl-win32-users group is probably the right one for this
question. Someone there may be able to direct you to a
win32-specific module or script that will do some of what you
want.
But first you'll want to read the FAQ. Not the standard Perl
FAQ, but the ActivePerl FAQ that comes with each install of
ActiveState Perl. There under the section "Windows 95/NT"
you'll find this:
"How do I schedule jobs on Win32 platforms?"
It has several possible solutions for you, one of which
may be what you had in mind.
HTH,
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician
------------------------------
Date: Fri, 4 Jun 1999 17:17:53 -0700
From: Kristina <kristina@greatbasin.net>
Subject: Re: Perl, Y2K, and idiots
Message-Id: <Pine.BSI.4.05L.9906041707060.24586-100000@web0.greatbasin.net>
On 1 Jun 1999, UUCP wrote:
> From: fl_aggie@thepentagon.com (I R A Aggie)
>
> If that's how you feel...then go to you favorite bookstore that stocks
> O'Reilly books, pick up the Llama book (Learning Perl, Schwartz and
> Christiansen) and read the Foreward. If my memory is correct, Larry
> Wall states something akin to: learn what you need to of perl. A
> knowledge of a subset that accomplishes what you need accomplished
> is adequate.
<grin!> I have, I think, the first or second edition of _Learning Perl_.
Actually, that may be one of the problems of script archive authors. We
write a script waaaaaay back when, and it seems to work and accomplish
what we need it to. Bug reports eventually slow down to "I'm getting
Server Error 500," which is almost always fixed by re-uploading in ascii
or making sure that the shebang line is correct and at the top of the
file, so we forget to go back and update them to use, say, Perl 5 features
or even add checks for file openability or pipe closes, etc.
It's very easy to become complacent.
> Just remember that when you ask for clarification on something you
> should phrase your question like this: The docs say that if I use
> X on Y, I should get Z, but I get A instead. Why? here's my code
> snippet that demonstrates my dilema...
Actually, the "justify my existence" thing was referring to the
anger against "script archive" authors like Matt Wright and (to a
far lesser extent since my archive isn't that well-known) me, but your
point is well taken.
> + Anyone have a URL for good Perl programming style over and above where one
> + should put the whitespace and the curly brackets?
>
> 'perldoc perlstyle'??
Yup, that's a good one. Just haven't ... errr ... necessarily applied
it to all the things I should. <blush!> Working on it, though...
Kristina
------------------------------
Date: Fri, 4 Jun 1999 23:45:48 +0100
From: "Nuno Felicio" <Nuno.Felicio@bigfoot.com>
Subject: Please -> Binary Files - Thanks
Message-Id: <928543225.892846@orodruin.esoterica.pt>
Imagine a file with this binary content:
(each byte is represented by its HEX format)
A2 2D C3 4F 2F FF
How can I open this file and check each byte with perl?
For example, a simple program that open this file and outputs the binary
contents in HEX format like this:
A2h 2Dh C3h 4Fh 2Fh FFh
Thank you very much
Nuno Felicio, Portugal
------------------------------
Date: Fri, 4 Jun 1999 17:10:09 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Please -> Binary Files - Thanks
Message-Id: <Pine.GSO.4.02A.9906041708020.5411-100000@user2.teleport.com>
On Fri, 4 Jun 1999, Nuno Felicio wrote:
> How can I open this file and check each byte with perl?
Perl itself doesn't have a problem with binary data. You'll probably want
to use binmode to let Perl tell the system that you want to view the data
as binary. And you'll probably want to use read() to read a chunk at a
time. To convert bytes to hex, you can use unpack with a format of "H*".
All of those functions are described in the perlfunc manpage.
Have fun with it!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: 4 Jun 1999 18:26:05 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: Please -> Binary Files - Thanks
Message-Id: <37586e9d@cs.colorado.edu>
[courtesy cc of this posting mailed to cited author]
In comp.lang.perl.misc,
"Nuno Felicio" <Nuno.Felicio@bigfoot.com> writes:
:Imagine a file with this binary content:
:(each byte is represented by its HEX format)
:
:A2 2D C3 4F 2F FF
:
:How can I open this file and check each byte with perl?
Step 1: Install an operating system.
Step 2: Read some data.
Step 3: Compare its ordinal value with what you are about.
If something doesn't work, you forgot step 1.
--tom
--
But you have to allow a little for the desire to evangelize when you
think you have good news.
--Larry Wall in <1992Aug26.184221.29627@netlabs.com>
------------------------------
Date: Sat, 5 Jun 1999 00:52:51 GMT
From: ebohlman@netcom.com (Eric Bohlman)
Subject: Re: Simple question about hashes
Message-Id: <ebohlmanFCtx44.20z@netcom.com>
Michel Dalle (michel.dalle@usa.net) wrote:
: In most of the scripts I use, I couldn't do anything with a key having an
: undefined value anyway, so I just skip the 'exists' part and check directly
: for a 'defined'. Bad habit, I guess...
It's often useful to initialize a hash with "undef" values if the purpose
of the hash is simply to check whether certain things exist, e.g.
my @stopwords{qw/the an of this that them those/}=();
------------------------------
Date: Fri, 04 Jun 1999 22:52:19 GMT
From: follansb@real.com
Subject: Sorting Multidimensional Lists
Message-Id: <7j9lb0$q1d$1@nnrp1.deja.com>
Hi,
I'm trying to sort an array of arrays, and I want to sort the array of
arrays by column 2 (index number 1) alphabetically. I've tried this:
@sortarrays = sort (@sortarrays);
This moves the row that should be first to the top position, but doesn't
affect any other row. Nothing else seems to work.
Any ideas?
Joe Follansbee
Operations Manager, Media Publishing
RealNetworks, Inc
follansb@real.com
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Fri, 04 Jun 1999 15:56:04 -0500
From: Justis <justisd@mnl.com>
Subject: using MIME::Lite to send attachments
Message-Id: <37583D64.6737FEA3@mnl.com>
Hello,
I've tried using the module MIME:Lite to send
an attachment and its works fine except the headers
are included in the body of the message,
whenever the mail message is multipart.
For example:
use MIME::Lite;
$msg = new MIME::Lite (
From =>'x@x.xxx',
To =>'x@x.xxx',
Subject =>'A message with 2 parts...',
Type =>'multipart/mixed', # I've also tried leaving this
field out
);
attach $msg (
Type =>'TEXT',
Data =>"Hello\n",);
attach $msg (
Disposition=>'attachment', # I've also tried leaving this field
out
Type =>'application/octet-stream',
Path =>'file.pl',
Filename =>'attach');
$msg->send;
This code will send a message looking like:
-
Content-Disposition: inline
Content-Length: 5
Content-Transfer-Encoding: binary
Content-Type: text/plain
Hello
Content-Disposition: attachment; filename="attach"
Content-Length: 5905
Content-Transfer-Encoding: binary
Content-Type: application/octet-stream; name="attach"
Attachment Converted: "c:\program files\eudoralight\attach\attach"
--
The email message originates on hpux, using sendmail.
I am using eudora light to read the email message.
How can I get rid of the headers?
Thanks in advance,
Justis
------------------------------
Date: Fri, 04 Jun 1999 22:47:57 GMT
From: mjd@plover.com (Mark-Jason Dominus)
Subject: Very very short tutorial about modules
Message-Id: <3758579c.648f$205@news.op.net>
I have written a very very short tutorial about modules. It has two
parts. Each part has one extremely simple sample module file, an
extremely simple sample program that uses it, and seven exercises.
That is all.
The first part is about modules that export functions into your
program with the exporter. The second part is about object-oriented
modules.
The goal here is:
1. Provide the simplest possible example for people who aren't
sure where to start. At present, this example did not
exist anywhere.
2. Get people ready to understand what is going on in
`perltoot'.
3. Briefly cover how to use the Exporter, which is explicitly
outside the scope of perltoot.
Writing modules is a very big topic, and it was my sense that the
existing documentation bites off too much of it. When I wrote
`perlreftut' I tried to cover the most important 90% of the topic in
10% of the space. Here I am trying to cover the most important 20% in
1% of the space. The strategy I took was to not explain anything at
all, but to try to provide examples that explained themselves.
It is now available at
http://www.plover.com/~mjd/perl/Hello/
.. I would be grateful for feedback, especially from people who don't
know how to write modules yet.
------------------------------
Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
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 5894
**************************************