[13766] in Perl-Users-Digest
Perl-Users Digest, Issue: 1177 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Wed Oct 27 21:32:16 1999
Date: Wed, 27 Oct 1999 18:32:06 -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: <941074326-v9-i1177@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Wed, 27 Oct 1999 Volume: 9 Number: 1177
Today's topics:
Re: E-Mail via script Perl ? (Bart Lateur)
Re: E-Mail via script Perl ? <bballz03@hotmail.com>
Re: E-Mail via script Perl ? (Randal L. Schwartz)
efficient diff algorithm <mel@disc.com>
Email To Pagers From NT <Rick.Brewer@USA.Alcatel.com>
Re: Email To Pagers From NT <lee@insync.net>
Re: Email To Pagers From NT <MC-Murphy@worldnet.att.net>
Email::Valid module and rfc compliant addresses (Amir Khosrowshahi)
Re: Email::Valid module and rfc compliant addresses (Michael Budash)
Re: Email::Valid module and rfc compliant addresses <rootbeer@redcat.com>
Re: Email::Valid module and rfc compliant addresses (Michael Budash)
Re: Email::Valid module and rfc compliant addresses (brian d foy)
Re: eval using the wrong namespace? <rootbeer@redcat.com>
Re: exiting non-zero at end of perl -[np] <dan@tuatha.sidhe.org>
Re: exiting non-zero at end of perl -[np] (Ilya Zakharevich)
Re: exiting non-zero at end of perl -[np] (Ilya Zakharevich)
Re: exiting non-zero at end of perl -[np] <dan@tuatha.sidhe.org>
Re: exiting non-zero at end of perl -[np] (Abigail)
Re: exiting non-zero at end of perl -[np] (Abigail)
Re: exiting non-zero at end of perl -[np] jrw32982@my-deja.com
Re: exiting non-zero at end of perl -[np] <dan@tuatha.sidhe.org>
Re: exiting non-zero at end of perl -[np] (Ilya Zakharevich)
Re: FAQ 3.9: Is there an IDE or Windows Perl Editor? <wyzelli@yahoo.com>
Re: FAQ 3.9: Is there an IDE or Windows Perl Editor? <rra@stanford.edu>
Re: FAQ 3.9: Is there an IDE or Windows Perl Editor? <cassell@mail.cor.epa.gov>
Re: FAQ 9.1: My CGI script runs from the command line b (Pete Holsberg)
Re: FAQ 9.1: My CGI script runs from the command line b <gellyfish@gellyfish.com>
Re: FAQ 9.1: My CGI script runs from the command line b <tex@engsoc.carleton.ca>
Re: FAQ 9.3: How do I remove HTML from a string? <lr@hpl.hp.com>
Re: FAQ 9.3: How do I remove HTML from a string? <cassell@mail.cor.epa.gov>
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Tue, 26 Oct 1999 18:48:02 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: E-Mail via script Perl ?
Message-Id: <3815f35a.430062@news.skynet.be>
K-Franz wrote:
>Your message has been cancelled because you are a dickhead. What the hell
>is this binary garbage anyway?
What are you babbling about? I don't see ANY binary posting in any of
the messages that are referenced in your "References:" message header,
and most defininitely not in Randal's.
Maybe his post got garbled in the worldwide distribution. But that is no
excuse for your uncivilized outburst.
--
Bart.
------------------------------
Date: Tue, 26 Oct 1999 12:19:59 -0500
From: "K-Franz" <bballz03@hotmail.com>
Subject: Re: E-Mail via script Perl ?
Message-Id: <7v4o08$lbm$1@news.d.umn.edu>
Your message has been cancelled because you are a dickhead. What the hell
is this binary garbage anyway?
In the words of the wise philosopher Makaveli,
"eat a phat dick"
Bitch
------------------------------
Date: 25 Oct 1999 08:58:43 -0700
From: merlyn@stonehenge.com (Randal L. Schwartz)
Subject: Re: E-Mail via script Perl ?
Message-Id: <m1emej4eks.fsf@halfdome.holdit.com>
>>>>> "flamencoman" == flamencoman <flamencoman@earthlink.net> writes:
flamencoman> I've been using the following format in my Unix perl script to
flamencoman> automatically e-mail various people. The $subject variable holds the
flamencoman> mailer subject and the $email variable holds the recipients e-mail
flamencoman> address. $your_email_name is the sender's e-mail address. The @NAME
flamencoman> array holds a list of names that are targeted for e-mail. The @EO
flamencoman> array holds a list of numbers. $date holds the date when a response is
flamencoman> due. $first_name is the sender's friendly handle.
Unless you tightly control $subject, $email, $your_email_name, and
$EO[$I], you are asking for a load of trouble with this script. As
in, I can get your script to execute ANY command I want. Especially
bad if this is some sort of CGI.
Moral: Stop using mailx or Berkeley /bin/mail. There are soooo many
other ways to send mail that are sooooo much more secure... <sigh>.
print "Just another Perl hacker,"
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!
------------------------------
Date: Wed, 27 Oct 1999 20:04:28 GMT
From: Mark Lofdahl <mel@disc.com>
Subject: efficient diff algorithm
Message-Id: <7v7ls9$fc1$1@nnrp1.deja.com>
I'm looking for an implementation of diff in perl. I've looked at the
Algorithm::Diff module on CPAN, but I don't think that will work for
me. Part of the way it works (as far as I could tell) is to create a 2-
dimensional array that is <number of lines of file1> x <number of lines
of file2>. If I'm diffing 1000 x 1000 lines, that's a 1,000,000 element
array. My machine runs out of memory way before that.
Is there another diff algorithm out there? Maybe one that is implemented
more like the unix diff program?
TIA,
Mark
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Tue, 26 Oct 1999 09:06:15 -0500
From: Rick Brewer <Rick.Brewer@USA.Alcatel.com>
Subject: Email To Pagers From NT
Message-Id: <3815B557.73E5B4CF@USA.Alcatel.com>
I am being forced into using NT for the first time here lately
(sigh...) and need to send email from a Perl script there. I have
downloaded MailTools and it works great except when attempting to email
pagers. The format of email to pagers is pin@skytel.com .
I can send this just fine using sendmail or mailx from Unix. Even
from Netscape email on Win95. However, whenever I put the
pin@skymail.com into the Perl script on NT, no error is ever given, but
the message never arrives at the pager.
Any limits in Mailtools with numeric usernames?
thx,
Rick
------------------------------
Date: Wed, 27 Oct 1999 10:38:08 -0500
From: "Lee Sharp" <lee@insync.net>
Subject: Re: Email To Pagers From NT
Message-Id: <x%ER3.10734$Ph7.71158@insync>
|Rick Brewer <Rick.Brewer@USA.Alcatel.com> wrote in message
|news:3815B557.73E5B4CF@USA.Alcatel.com...
|> I am being forced into using NT for the first time here lately
|> (sigh...) and need to send email from a Perl script there. I have
|> downloaded MailTools and it works great except when attempting to email
|> pagers. The format of email to pagers is pin@skytel.com .
|> I can send this just fine using sendmail or mailx from Unix. Even
|> from Netscape email on Win95. However, whenever I put the
|> pin@skymail.com into the Perl script on NT, no error is ever given, but
|> the message never arrives at the pager.
|> Any limits in Mailtools with numeric usernames?
I had the same problem. Here is my solution using active Perl.
Attributions to Joe Shaw who passed it to me. You have to have a SMTP
gateway that will relay, or connect directly to the destination. I embedded
this into Angel for network monitoring. It works too well. :-)
use Net::SMTP; # this is part of the IO::Libnet package from CPAN.
my(smtp,$pagehead,$pagedesc);
$smtp = Net::SMTP->new("smtp.foo.net");
# the following fills out the envelope;
$smtp->mail("from\@foo.net");
$smtp->to("to\@foo2.com");
$smtp->to("to2\@foo3.com");
$smtp->data();
# same as the envelope, but necessary for mail readers like Outlook;
$smtp->datasend("From: from\@foo.net\n");
$smtp->datasend("To: Distribution\n");
$smtp->datasend("Subject: Alert! ",$pagehead,"!\n");
# this is important, or no message content.
$smtp->datasend("\n");
$smtp->datasend($pagedesc,"\n");
$smtp->dataend();
$smtp->quit;
This does give an odd error at the console; "The system cannot find the
path specified." I don't know why, but it works so I have not looked in to
it. :-) If anyone knows, I would love suggestions.
Lee
--
SCSI is *NOT* magic. There are *fundamental technical reasons* why it is
necessary to sacrifice a young goat to your SCSI chain now and then. * Black
holes are where God divided by zero. - I am speaking as an individual, not
as a representative of any company, organization or other entity. I am
solely responsible for my words.
------------------------------
Date: Tue, 26 Oct 1999 19:19:36 -0700
From: "Mark Murphy" <MC-Murphy@worldnet.att.net>
Subject: Re: Email To Pagers From NT
Message-Id: <7v5nde$dtf$1@bgtnsc01.worldnet.att.net>
Check out HTTP::Request and LPW also you can go to Linux Journal, and check
last months "strictly online"
Rick Brewer <Rick.Brewer@USA.Alcatel.com> wrote in message
news:3815B557.73E5B4CF@USA.Alcatel.com...
> I am being forced into using NT for the first time here lately
> (sigh...) and need to send email from a Perl script there. I have
> downloaded MailTools and it works great except when attempting to email
> pagers. The format of email to pagers is pin@skytel.com .
> I can send this just fine using sendmail or mailx from Unix. Even
> from Netscape email on Win95. However, whenever I put the
> pin@skymail.com into the Perl script on NT, no error is ever given, but
> the message never arrives at the pager.
> Any limits in Mailtools with numeric usernames?
>
> thx,
> Rick
------------------------------
Date: Wed, 27 Oct 1999 13:25:47 GMT
From: amir@calaveras.vfrogs.com (Amir Khosrowshahi)
Subject: Email::Valid module and rfc compliant addresses
Message-Id: <slrn81dvam.3i4.amir@calaveras.vfrogs.com>
I am using the Email::Valid module from CPAN to check that email
addresses input in a CGI form are RFC 822 compliant, as a quick
way to check the user's input for typos.
Its mentioned in section 6.19 of the Perl Cookbook that there are
non-RFC compliant addresses that are deliverable. The example given
is for a local address that has no @. Is this true for non-local
addresses as well?
This may be even more unrelated to this group, but is there a
public perl module that returns true for an address that can be
injected into the qmail queue without a fail, and false otherwise?
------------------------------
Date: Wed, 27 Oct 1999 14:56:50 -0700
From: mbudash@wcws.com (Michael Budash)
Subject: Re: Email::Valid module and rfc compliant addresses
Message-Id: <mbudash-2710991456500001@adsl-216-103-91-123.dsl.snfc21.pacbell.net>
In article <Pine.GSO.4.10.9910271132240.29843-100000@user2.teleport.com>,
Tom Phoenix <rootbeer@redcat.com> wrote:
> On Wed, 27 Oct 1999, Michael Budash wrote:
>
> > > if you want RFC822 compliant email addresses, check out abigail's
> > > RFC::RFC822::Validate module. it uses Parse::RecDescent rather
> > > than a regex kludge. :)
>
> > a quick check at my local CPAN shows nothing under RFC at top level...
> > any ideas on where abigail keeps the module?
>
> According to the CPAN module, it looks like
> ABIGAIL/RFC_RFC822_Address-1.4.tgz, so try
>
> http://www.cpan.org/authors/id/ABIGAIL/RFC_RFC822_Address-1.4.tgz
>
thanks tom!
--
Michael Budash ~~~~~~~~~~ mbudash@wcws.com
------------------------------
Date: Wed, 27 Oct 1999 11:34:10 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: Email::Valid module and rfc compliant addresses
Message-Id: <Pine.GSO.4.10.9910271132240.29843-100000@user2.teleport.com>
On Wed, 27 Oct 1999, Michael Budash wrote:
> > if you want RFC822 compliant email addresses, check out abigail's
> > RFC::RFC822::Validate module. it uses Parse::RecDescent rather
> > than a regex kludge. :)
> a quick check at my local CPAN shows nothing under RFC at top level...
> any ideas on where abigail keeps the module?
According to the CPAN module, it looks like
ABIGAIL/RFC_RFC822_Address-1.4.tgz, so try
http://www.cpan.org/authors/id/ABIGAIL/RFC_RFC822_Address-1.4.tgz
Cheers!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Wed, 27 Oct 1999 09:24:52 -0700
From: mbudash@wcws.com (Michael Budash)
Subject: Re: Email::Valid module and rfc compliant addresses
Message-Id: <mbudash-2710990924520001@adsl-216-103-91-123.dsl.snfc21.pacbell.net>
In article <brian-ya02408000R2710990948100001@news.panix.com>,
brian@smithrenaud.com (brian d foy) wrote:
> In article <slrn81dvam.3i4.amir@calaveras.vfrogs.com>, amir@vfrogs.com posted:
>
> > This may be even more unrelated to this group, but is there a
> > public perl module that returns true for an address that can be
> > injected into the qmail queue without a fail, and false otherwise?
>
> if you want RFC822 compliant email addresses, check out abigail's
> RFC::RFC822::Validate module. it uses Parse::RecDescent rather
> than a regex kludge. :)
>
a quick check at my local CPAN shows nothing under RFC at top level... any
ideas on where abigail keeps the module?
--
Michael Budash ~~~~~~~~~~ mbudash@wcws.com
------------------------------
Date: Wed, 27 Oct 1999 09:48:10 -0400
From: brian@smithrenaud.com (brian d foy)
Subject: Re: Email::Valid module and rfc compliant addresses
Message-Id: <brian-ya02408000R2710990948100001@news.panix.com>
In article <slrn81dvam.3i4.amir@calaveras.vfrogs.com>, amir@vfrogs.com posted:
> This may be even more unrelated to this group, but is there a
> public perl module that returns true for an address that can be
> injected into the qmail queue without a fail, and false otherwise?
if you want RFC822 compliant email addresses, check out abigail's
RFC::RFC822::Validate module. it uses Parse::RecDescent rather
than a regex kludge. :)
--
brian d foy
CGI Meta FAQ <URL:http://www.smithrenaud.com/public/CGI_MetaFAQ.html>
Perl Monger Hats! <URL:http://www.pm.org/clothing.shtml>
------------------------------
Date: Mon, 25 Oct 1999 13:05:16 -0700
From: Tom Phoenix <rootbeer@redcat.com>
Subject: Re: eval using the wrong namespace?
Message-Id: <Pine.GSO.4.10.9910251302240.29843-100000@user2.teleport.com>
On Sat, 23 Oct 1999 jlamport@calarts.edu wrote:
> my $content;
> {
> $_ = '$content = "yadda yadda";';
> my $content;
> eval;
> }
>
> This *should* (if I understand the documentation for eval correctly)
> set the *local* variable (since that's the context in which the string
> is eval'ed).
By "local" you seem to mean "lexical" ("my").
> But it's not: it's setting the global variable.
By "global" you seem to mean the file-scoped lexical.
I seem to recall a bug in which this kind of eval would accidentally use
the outer scope. But it should be fixed now. Which version of perl are you
using?
Cheers!
--
Tom Phoenix Perl Training and Hacking Esperanto
Randal Schwartz Case: http://www.rahul.net/jeffrey/ovs/
------------------------------
Date: Tue, 26 Oct 1999 08:37:04 GMT
From: Dan Sugalski <dan@tuatha.sidhe.org>
Subject: Re: exiting non-zero at end of perl -[np]
Message-Id: <QKdR3.2003$cP2.7372@news.rdc1.ct.home.com>
Abigail <abigail@delanet.com> wrote:
> Dan Sugalski (dan@tuatha.sidhe.org) wrote on MMCCXLVI September MCMXCIII
> in <URL:news:J52R3.1869$cP2.5821@news.rdc1.ct.home.com>:
> %%
> %% Something better would be nice, though.
> Which makes one wonder - shouldn't "something better" start with a
> format richer than pod?
Probably. But since 'something better' has yet to be done (unless there
are nice but obscure and dead formats/programs out there to do this. Which
there probably are) it's OK for now. Not great, but OK. Good enough to
write a book in, at least. (And I'd take emacs+pod over word any day.
Heck, I'd take vi+pod over word...)
Dan
------------------------------
Date: 25 Oct 1999 21:31:56 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: exiting non-zero at end of perl -[np]
Message-Id: <7v2i8c$fnv$1@charm.magnus.acs.ohio-state.edu>
[A complimentary Cc of this posting was sent to Abigail
<abigail@delanet.com>],
who wrote in article <slrn819frm.fji.abigail@alexandra.delanet.com>:
> %% Something better would be nice, though.
> Which makes one wonder - shouldn't "something better" start with a
> format richer than pod?
If what you asked is this: Pod converts OK to "better" formats. Well,
Pod converts *beautifully* to "better" formats. The problem is not
with format, the problem is with the content.
Current Perl's documentation would suck even with best possible
formatter.
Ilya
------------------------------
Date: 25 Oct 1999 21:36:43 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: exiting non-zero at end of perl -[np]
Message-Id: <7v2ihb$fpb$1@charm.magnus.acs.ohio-state.edu>
[A complimentary Cc of this posting was sent to Abigail
<abigail@delanet.com>],
who wrote in article <slrn819f42.fji.abigail@alexandra.delanet.com>:
> If only the .pod files used X<> more often, and the podmonging tools
> did something useful with X<>.... ;-)
A good POD formater would deduce X<> in most the places itself. Check
IBM-book-format documentation for an example. Index contains circa 2000
entries with an acceptable signal/noise ratio.
Of course, to get an *excellent* index you need a human intervention.
But even here the backward orientation of Perl POD people hits: I
remember objections when I put first X<>s into Perl PODs: "but pod2man
does not use/handle them!". (Was not it you who made pod2man tolerate
X<>s?)
Ilya
------------------------------
Date: Mon, 25 Oct 1999 19:22:17 GMT
From: Dan Sugalski <dan@tuatha.sidhe.org>
Subject: Re: exiting non-zero at end of perl -[np]
Message-Id: <J52R3.1869$cP2.5821@news.rdc1.ct.home.com>
Ilya Zakharevich <ilya@math.ohio-state.edu> wrote:
> [A complimentary Cc of this posting was sent to Dan Sugalski
> <dan@tuatha.sidhe.org>],
> who wrote in article <UL0R3.1844$cP2.5773@news.rdc1.ct.home.com>:
>> This is the big reason I use the PDF of the perl docs for reference. The
>> whole 5.005_02 docset, along with a bunch of common CPAN module docs, are
>> in one big searchable (and cut-n-pasteable) file. Granted, Acrobat's
>> search function's pretty primitive compared to, say, perl, but it works
>> well enough most of the time.
> Well, PDF is just a giant GIF file with zooming and searching
> attached. It is not designed for screen viewing.
Now, now, that's just not true. They're giant *postscript* files with
searching attached. Completely different. :)
Yeah, they're not great for on-screen viewing, but they're not horrible.
And they print very well (and exactly the way you want, if you're the one
making them) so they're not hideous.
Something better would be nice, though.
Dan
------------------------------
Date: 25 Oct 1999 15:24:59 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: exiting non-zero at end of perl -[np]
Message-Id: <slrn819f42.fji.abigail@alexandra.delanet.com>
Dan Sugalski (dan@tuatha.sidhe.org) wrote on MMCCXLVI September MCMXCIII
in <URL:news:UL0R3.1844$cP2.5773@news.rdc1.ct.home.com>:
__
__ This is the big reason I use the PDF of the perl docs for reference. The
__ whole 5.005_02 docset, along with a bunch of common CPAN module docs, are
__ in one big searchable (and cut-n-pasteable) file. Granted, Acrobat's
__ search function's pretty primitive compared to, say, perl, but it works
__ well enough most of the time.
If only the .pod files used X<> more often, and the podmonging tools
did something useful with X<>.... ;-)
Abigail
--
perl -MNet::Dict -we '(Net::Dict -> new (server => "dict.org")
-> define ("foldoc", "perl")) [0] -> print'
-----------== 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: 25 Oct 1999 15:37:35 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: exiting non-zero at end of perl -[np]
Message-Id: <slrn819frm.fji.abigail@alexandra.delanet.com>
Dan Sugalski (dan@tuatha.sidhe.org) wrote on MMCCXLVI September MCMXCIII
in <URL:news:J52R3.1869$cP2.5821@news.rdc1.ct.home.com>:
%%
%% Something better would be nice, though.
Which makes one wonder - shouldn't "something better" start with a
format richer than pod?
Abigail
--
perl -wle 'print "Prime" if ("m" x shift) !~ m m^\m?$|^(\m\m+?)\1+$mm'
-----------== 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: Mon, 25 Oct 1999 16:25:56 GMT
From: jrw32982@my-deja.com
Subject: Re: exiting non-zero at end of perl -[np]
Message-Id: <7v20ae$b3c$1@nnrp1.deja.com>
In article <x3yg0z38bik.fsf@tigre.matrox.com>,
Ala Qumsieh <aqumsieh@matrox.com> wrote:
> Use perldoc.
Well, I've never found perldoc particularly easy to use, either. Maybe
(like GNU's info command) I'm just not familiar enough with it. IMHO,
this is one area where web browsers and HTML can really shine --
cross-referencing man pages. There still needs to be a search facility
but, taking tcl as an example, I find that I hardly ever need more than
what I can easily find in tcl's html man pages using a browser.
--
John Wiersba
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Mon, 25 Oct 1999 17:50:44 GMT
From: Dan Sugalski <dan@tuatha.sidhe.org>
Subject: Re: exiting non-zero at end of perl -[np]
Message-Id: <UL0R3.1844$cP2.5773@news.rdc1.ct.home.com>
jrw32982@my-deja.com wrote:
> In article <x3yg0z38bik.fsf@tigre.matrox.com>,
> Ala Qumsieh <aqumsieh@matrox.com> wrote:
>> Use perldoc.
> Well, I've never found perldoc particularly easy to use, either. Maybe
> (like GNU's info command) I'm just not familiar enough with it. IMHO,
> this is one area where web browsers and HTML can really shine --
> cross-referencing man pages.
This is the big reason I use the PDF of the perl docs for reference. The
whole 5.005_02 docset, along with a bunch of common CPAN module docs, are
in one big searchable (and cut-n-pasteable) file. Granted, Acrobat's
search function's pretty primitive compared to, say, perl, but it works
well enough most of the time.
Dan
------------------------------
Date: 25 Oct 1999 18:05:37 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: exiting non-zero at end of perl -[np]
Message-Id: <7v265h$dc5$1@charm.magnus.acs.ohio-state.edu>
[A complimentary Cc of this posting was sent to Dan Sugalski
<dan@tuatha.sidhe.org>],
who wrote in article <UL0R3.1844$cP2.5773@news.rdc1.ct.home.com>:
> This is the big reason I use the PDF of the perl docs for reference. The
> whole 5.005_02 docset, along with a bunch of common CPAN module docs, are
> in one big searchable (and cut-n-pasteable) file. Granted, Acrobat's
> search function's pretty primitive compared to, say, perl, but it works
> well enough most of the time.
Well, PDF is just a giant GIF file with zooming and searching
attached. It is not designed for screen viewing.
But with IBM online-books (which *for decades* do all the stuff PDF
does, *plus* reflow to the screen size) I find current Perl docs
*almost* tolerable. (IBM book viewers available for PC DOS, Win*,
OS/2, AIX etc.)
Ilya
------------------------------
Date: Wed, 27 Oct 1999 17:24:49 +0930
From: "Wyzelli" <wyzelli@yahoo.com>
Subject: Re: FAQ 3.9: Is there an IDE or Windows Perl Editor?
Message-Id: <odyR3.22$oC2.1921@vic.nntp.telstra.net>
Tom Christiansen <perlfaq-suggestions@perl.com> wrote in message
news:3816addc@cs.colorado.edu...
A FAQ ostensibly about Windows IDE which for the first 60% tells us how good
Unix is...
hmmm!
Wyzelli
------------------------------
Date: 27 Oct 1999 01:23:20 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: FAQ 3.9: Is there an IDE or Windows Perl Editor?
Message-Id: <ylogdl2ow7.fsf@windlord.stanford.edu>
Wyzelli <wyzelli@yahoo.com> writes:
> A FAQ ostensibly about Windows IDE
No, that isn't what it's about. Read the subject line again. :)
--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
------------------------------
Date: Wed, 27 Oct 1999 16:02:50 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
Subject: Re: FAQ 3.9: Is there an IDE or Windows Perl Editor?
Message-Id: <3817849A.7B25E873@mail.cor.epa.gov>
Wyzelli wrote:
>
> Tom Christiansen <perlfaq-suggestions@perl.com> wrote in message
> news:3816addc@cs.colorado.edu...
>
> A FAQ ostensibly about Windows IDE which for the first 60% tells us how good
> Unix is...
>
> hmmm!
Well, look who wrote it. You were expecting a paean to OS/2
maybe? :-)
As Tom himself has said, "patches are welcome". The place to
send them is in his header above.
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician
------------------------------
Date: 26 Oct 1999 19:58:05 GMT
From: pjh@mccc.edu (Pete Holsberg)
Subject: Re: FAQ 9.1: My CGI script runs from the command line but not the browser. (500 Server Error)
Message-Id: <7v514d$qu7$1@lawrenceville.mccc.edu>
Tom Christiansen (perlfaq-suggestions@perl.com) wrote:
: (This excerpt from perlfaq9 - Networking
: ($Revision: 1.26 $, $Date: 1999/05/23 16:08:30 $)
: part of the standard set of documentation included with every
: valid Perl distribution, like the one on your system.
: See also http://language.perl.com/newdocs/pod/perlfaq9.html
: if your negligent system adminstrator has been remiss in his duties.)
:
: My CGI script runs from the command line but not the browser. (500 Server Error)
:
: If you can demonstrate that you've read the following FAQs and that
: your problem isn't something simple that can be easily answered,
: you'll probably receive a courteous and useful reply to your
: question if you post it on comp.infosystems.www.authoring.cgi (if
: it's something to do with HTTP, HTML, or the CGI protocols).
: Questions that appear to be Perl questions but are really CGI ones
: that are posted to comp.lang.perl.misc may not be so well received.
:
: The useful FAQs and related documents are:
:
: CGI FAQ
: http://www.webthing.com/page.cgi/cgifaq
The requested URL /page.cgi/cgifaq was not found on this
server.
------------------------------
Date: 26 Oct 1999 19:47:38 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: FAQ 9.1: My CGI script runs from the command line but not the browser. (500 Server Error)
Message-Id: <7v50gq$inr$1@gellyfish.btinternet.com>
On 26 Oct 1999 12:17:08 GMT Clayton L. Scott wrote:
> Tom wrote
> : (This excerpt from perlfaq9 - Networking
> : The useful FAQs and related documents are:
>
> : CGI FAQ
> : http://www.webthing.com/page.cgi/cgifaq
>
> This page doesn't seem to exist.
>
No - but it can be found at :
<http://www.webthing.com/tutorials/cgifaq.html>
/J\
--
Jonathan Stowe <jns@gellyfish.com>
<http://www.gellyfish.com>
Hastings: <URL:http://dmoz.org/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: 26 Oct 1999 12:17:08 GMT
From: Clayton L. Scott <tex@engsoc.carleton.ca>
Subject: Re: FAQ 9.1: My CGI script runs from the command line but not the browser. (500 Server Error)
Message-Id: <7v4644$4qi$2@bertrand.ccs.carleton.ca>
Tom wrote
: (This excerpt from perlfaq9 - Networking
: The useful FAQs and related documents are:
: CGI FAQ
: http://www.webthing.com/page.cgi/cgifaq
This page doesn't seem to exist.
Clayton
--
Warning: Dates on calendar are closer than they appear.
------------------------------
Date: Tue, 26 Oct 1999 17:37:39 -0700
From: Larry Rosler <lr@hpl.hp.com>
Subject: Re: FAQ 9.3: How do I remove HTML from a string?
Message-Id: <MPG.127fe931476ee2d298a136@nntp.hpl.hp.com>
In article <38163C52.A2566D3C@mail.cor.epa.gov> on Tue, 26 Oct 1999
16:42:10 -0700, David Cassell <cassell@mail.cor.epa.gov> says...
> Hey Tom! Nice to see you back.
No evidence whatever of that! All I see is his cron jobs reactivated.
--
(Just Another Larry) Rosler
Hewlett-Packard Laboratories
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Tue, 26 Oct 1999 16:42:10 -0700
From: David Cassell <cassell@mail.cor.epa.gov>
To: perlfaq-suggestions@perl.com
Subject: Re: FAQ 9.3: How do I remove HTML from a string?
Message-Id: <38163C52.A2566D3C@mail.cor.epa.gov>
[also emailed to perlfaq-suggestions]
Hey Tom! Nice to see you back.
Tom Christiansen wrote:
[snip]
> How do I remove HTML from a string?
>
> The most correct way (albeit not the fastest) is to use HTML::Parse
I thought the industry standard was now HTML::Parser. Didn't
this get fixed in a previous version of this answer?
> from CPAN (part of the HTML-Tree package on CPAN).
>
> Many folks attempt a simple-minded regular expression approach,
> like `s/<.*?>//g', but that fails in many cases because the tags
> may continue over line breaks, they may contain quoted angle-
> brackets, or HTML comment may be present. Plus folks forget to
> convert entities, like `<' for example.
>
> Here's one "simple-minded" approach, that works for most files:
>
> #!/usr/bin/perl -p0777
> s/<(?:[^>'"]*|(['"]).*?\1)*>//gs
But this still breaks in lots of cases!
I add this because people are now citing this answer as grounds
for using a regex for HTML parsing. They need to be reminded
that this is not optimal.
> If you want a more complete solution, see the 3-stage striphtml
> program in
> http://www.perl.com/CPAN/authors/Tom_Christiansen/scripts/striphtml
> .gz .
>
> Here are some tricky cases that you should think about when picking
> a solution:
>
> <IMG SRC = "foo.gif" ALT = "A > B">
>
> <IMG SRC = "foo.gif"
> ALT = "A > B">
>
> <!-- <A comment> -->
>
> <script>if (a<b && a>c)</script>
>
> <# Just data #>
>
> <![INCLUDE CDATA [ >>>>>>>>>>>> ]]>
>
> If HTML comments include other tags, those solutions would also
> break on text like this:
>
> <!-- This section commented out.
> <B>You can't see me!</B>
> -->
David
--
David Cassell, OAO cassell@mail.cor.epa.gov
Senior computing specialist
mathematical statistician
------------------------------
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 1177
**************************************