[16728] in Perl-Users-Digest
Perl-Users Digest, Issue: 4140 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Aug 26 18:05:29 2000
Date: Sat, 26 Aug 2000 15:05:10 -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: <967327510-v9-i4140@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Sat, 26 Aug 2000 Volume: 9 Number: 4140
Today's topics:
[OT] Re: stupid question probably <mjcarman@home.com>
ActivePerl output to my browser? <cbetman@raketnet.nl>
Re: ActivePerl output to my browser? (Greg Bacon)
Re: ActivePerl output to my browser? <jeff@vpservices.com>
Form Question <rsmith@sympatico.ca>
Re: get temporary file name? (s. keeling)
Good companion book to Programming Perl? <slipgun@desertsnake.abelgratis.com>
Re: Good companion book to Programming Perl? (Greg Bacon)
Re: Kill Me! (Keith Calvert Ivey)
Re: Kill Me! (Tony L. Svanstrom)
Re: Perl Regexp (Tony L. Svanstrom)
Re: Perl Regexp (Jakob Schmidt)
Re: Perl Regexp <cghawthorne@yahoo.com>
Re: Perl Regexp <cghawthorne@yahoo.com>
reading and writing file contents <sdoraira@vt.edu>
Re: Regexp Question <cghawthorne@yahoo.com>
Re: Regexp Question <jhelman@wsb.com>
Re: Regexp Question (Jakob Schmidt)
Re: Self-Answering Questions (Was Re: Flipflop matching <bart.lateur@skynet.be>
Re: Self-Answering Questions (Was Re: Flipflop matching <bart.lateur@skynet.be>
Re: Self-Answering Questions (Was Re: Flipflop matching (Greg Bacon)
Re: selling perl to management (Tom Christiansen)
Re: SendMail and IIS (David Efflandt)
Re: What is a Linux file type of 'application/x-cgi' ? <tina@streetmail.com>
Re: What is a Linux file type of 'application/x-cgi' ? (David Efflandt)
Re: would you recommend buying a book (Tim Hammerquist)
Re: Writing FAQs via PERL <flavell@mail.cern.ch>
Re: x10 devices (David Efflandt)
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 26 Aug 2000 20:36:23 GMT
From: Michael Carman <mjcarman@home.com>
Subject: [OT] Re: stupid question probably
Message-Id: <39A82B5B.EFF0C9A3@home.com>
Abigail wrote:
>
> I've made it a habit to permanently killfile anyone who posts
> Jeopardy style. Without second chances. And I'm seriously
> considering to killfile anything written from Mozilla and Outlook.
Well, then you wouldn't see any of my posts, which may or may not
concern you. :)
Mozilla has been "good enough" for me, though I've considered looking
for something better. At any rate, it's not the product that forces the
behavior.
-mjc
------------------------------
Date: Sat, 26 Aug 2000 21:47:35 +0200
From: "Charles Betman" <cbetman@raketnet.nl>
Subject: ActivePerl output to my browser?
Message-Id: <HhI9oW5DAHA.308@asd24-aux-005.tis.telfort.net>
Hi there,
I've installed ActivePerl on my Wintel machine (Windows 98) and it's no
problem to run my cgi-scripts in a Dos-box.
What I want is to test my scripts (from by browser) and send the output back
to my browser. Can anybody please tell me if that's possible and if so, how?
Thanks in advance.
--
Met vriendelijke groet,
Charles
http://www.betman.demon.nl/
charles@betman.demon.nl
------------------------------
Date: Sat, 26 Aug 2000 20:12:12 GMT
From: gbacon@HiWAAY.net (Greg Bacon)
Subject: Re: ActivePerl output to my browser?
Message-Id: <sqg94sa3t9192@corp.supernews.com>
In article <HhI9oW5DAHA.308@asd24-aux-005.tis.telfort.net>,
Charles Betman <cbetman@raketnet.nl> wrote:
: What I want is to test my scripts (from by browser) and send the
: output back to my browser. Can anybody please tell me if that's
: possible and if so, how?
That question is better asked in a group dedicated to your browser.
It's not a Perl question because the answer would be the same regardless
of whether you wrote your program in Perl, C, INTERCAL, or machine
language.
Greg
--
Of course, this is a heuristic, which is a fancy way of saying that it
doesn't work.
-- mjd
------------------------------
Date: Sat, 26 Aug 2000 13:12:02 -0700
From: Jeff Zucker <jeff@vpservices.com>
Subject: Re: ActivePerl output to my browser?
Message-Id: <39A82492.81F15D64@vpservices.com>
Charles Betman wrote:
>
> I've installed ActivePerl on my Wintel machine (Windows 98) and it's no
> problem to run my cgi-scripts in a Dos-box.
> What I want is to test my scripts (from by browser) and send the output back
> to my browser. Can anybody please tell me if that's possible and if so, how?
You are missing a key ingredient. The flow of information (in most
cases) is not
perl <-> browser
But rather
perl <-> web server <-> browser
To easily install a web server on your own computer, please refer to the
documentation that came with ActivePerl, particularly the parts of the
ActivePerl FAQ on windows specifics which list several places to
download free web servers.
--
Jeff
------------------------------
Date: Sat, 26 Aug 2000 21:57:00 GMT
From: richie <rsmith@sympatico.ca>
Subject: Form Question
Message-Id: <39A83DA7.9A767A1@sympatico.ca>
Is there an easy way for me to have a selection menu like this:
print "<select name='place'>";
print "<option selected value'garbage'> Please click here";
print "<option value='maps'>Use the Maps ";
print "<option value='location'> Specify a location";
print "<option value='street'> Specify a street";
print "</select>";
and then when I hit the button:
print "<input type='submit' value=' Go To Location '>";
print "</FORM>\n";
print "<TD>\n";
depending, on what option is selected it will pass it to one of three
different scripts, and perform the following:
$string1="origin_index_x=$coordx&origin_index_y=$coordy&>";
$string1 =~ s/\=/\~/g;
print "\n <INPUT TYPE = hidden NAME = string VALUE= $string1>\n";
Or will I have to pass the selection into a script and then decide what
script it has to go to next?
Thanks, Richie
------------------------------
Date: Sat, 26 Aug 2000 21:05:38 GMT
From: keeling@topquark.spots.ab.ca (s. keeling)
Subject: Re: get temporary file name?
Message-Id: <slrn8qgc92.uka.keeling@topquark.spots.ab.ca>
On Tue, 08 Aug 2000 16:35:17 -0700, Tim Conrow <tim@ipac.caltech.edu> wrote:
> % perldoc -q temporary
>
> =head1 Found in /usr/local/lib/perl5/5.6.0/pod/perlfaq5.pod
>
> =head2 How do I make a temporary file name?
>
> Like magic, isn't it? Documentation is a wonderful thing.
-------------------- snip ------------------------
(0) /home/keeling/_ perl -v
This is perl, version 5.004_04 built for i386-linux
[snip]
(255) /home/keeling/_ perldoc -q temporary
Unknown option: q
perldoc [options] PageName|ModuleName|ProgramName...
perldoc [options] -f BuiltinFunction
Options:
-h Display this help message
-t Display pod using pod2text instead of pod2man and nroff
(-t is the default on win32)
-u Display unformatted pod text
-m Display modules file in its entirety
-l Display the modules file name
-v Verbosely describe what's going on
-------------------- snip ------------------------
Usually. Or am I (yet again) hopelessly out of date from the current
(bleading edge) configuration?
--
keelingNO@SPAM.spots.ab.ca (Stephen) TopQuark Software & Serv. Enquire within.
[sed 's/NO@SPAM./@/g'] Contract programmer, server bum.
Any technology distinguishable from magic is insufficiently advanced.
------------------------------
Date: Sat, 26 Aug 2000 20:54:26 +0000
From: Slip Gun <slipgun@desertsnake.abelgratis.com>
Subject: Good companion book to Programming Perl?
Message-Id: <39A82E82.FB76B00C@desertsnake.abelgratis.com>
Hi,
I have just bought a copy of the 3rd edition of Larry Wall + co's
"Programming Perl", and although it is a v.good book, it is more of a
reference book than a learning one. I am considering buying "The Perl
Cookbook" as a companion - is this a good idea? I have heard that
together, these books are great for learning perl.
Cheers,
Ed
--
Those who trade away their privacy in favour of security will soon find
that they have neither.
------------------------------
Date: Sat, 26 Aug 2000 20:17:32 GMT
From: gbacon@HiWAAY.net (Greg Bacon)
Subject: Re: Good companion book to Programming Perl?
Message-Id: <sqg9es5pt9117@corp.supernews.com>
In article <39A82E82.FB76B00C@desertsnake.abelgratis.com>,
Slip Gun <slipgun@desertsnake.abelgratis.com> wrote:
: I have just bought a copy of the 3rd edition of Larry Wall + co's
: "Programming Perl", and although it is a v.good book, it is more of a
: reference book than a learning one. I am considering buying "The Perl
: Cookbook" as a companion - is this a good idea? I have heard that
: together, these books are great for learning perl.
You didn't talk much about your background. If you have a CS background
or even less formal programming experience, Nigel Chapman's book,
_Perl: The Programmer's Companion_[*] is an excellent choice.
[*] <URL:http://catalog2.wiley.com/catalog/titleinfo/1,1812,047197563X|840|01,00.html>
Greg
--
Convictions are more dangerous enemies of truth than lies.
-- Nietzsche
------------------------------
Date: Sat, 26 Aug 2000 19:11:47 GMT
From: kcivey@cpcug.org (Keith Calvert Ivey)
Subject: Re: Kill Me!
Message-Id: <39a90fd6.61025494@news.newsguy.com>
Albert Dewey <timewarp@shentel.net> wrote:
>At least I made an effort in my prior post regarding the Jeopardy issue
>as to why I do this and supported it with logic. Every post I have read
>criticizing the jeopardy poster has had no rhyme or reason other than
>some really weak argument referring to the 'natural flow of time'.
Then I guess you need to read some more. The logic has been
explained ad nauseam, and there have been suggestions to look at
Tom Christiansen's document on the subject. Here's another URL
for it:
http://www.deja.com/=dnc/getdoc.xp?AN=549644224
The logic is very simple: Under your system, every post has a
quoted copy of every previous post in the thread hanging off the
end. That is illogical, unnecessary, and a waste of space. Why
not delete the parts that are no longer relevant?
Under the existing system, which has been operating quite fine
on Usenet since its inception -- long before Microsoft and
Netscape got involved -- responses follow the relevant quoted
material, and it's easy to follow discussions. Things that
happened first come first, while those that follow follow.
One system worse than the one you support is the one you're
actually attempting to create: one in which there is no standard
and every poster makes up their own rules, in which there's no
order at all to the material in a message. That's what we're
trying to avoid.
I don't understand why you want to participate in the group at
all if you don't want your posts to be read by the people who
actually know what they're talking about, rather than just
newcomers who've wandered in. All of us make mistakes, and I
appreciate having mine pointed out; people who are just
beginning to learn Perl can't do that effectively. Maybe you
can learn, too, about Perl and about Usenet, if you're not too
proud to listen. If not, have fun in the kill files.
--
Keith C. Ivey <kcivey@cpcug.org>
Washington, DC
------------------------------
Date: Sat, 26 Aug 2000 22:36:38 +0200
From: tony@svanstrom.com (Tony L. Svanstrom)
Subject: Re: Kill Me!
Message-Id: <1efzten.1n3x276sdf1q8N%tony@svanstrom.com>
Albert Dewey <timewarp@shentel.net> wrote:
> To all the self proclaimed 'News Group Gods' out there -
>
> You are hereby instructed to add me to your 'Kill List' as an annoying
> poster for the following reasons :
That's a list of things that are against what's ok acording to the
charter; since this is a "semi-moderated" I'm hoping that the killfiling
will be at that end instead, since that's where it should be taken care
of in this case.
/Tony
--
/\___/\ Who would you like to read your messages today? /\___/\
\_@ @_/ Protect your privacy: <http://www.pgpi.com/> \_@ @_/
--oOO-(_)-OOo---------------------------------------------oOO-(_)-OOo--
on the verge of frenzy - i think my mask of sanity is about to slip
---ôôô---ôôô-----------------------------------------------ôôô---ôôô---
\O/ \O/ ©99-00 <http://www.svanstrom.com/?ref=news> \O/ \O/
------------------------------
Date: Sat, 26 Aug 2000 22:36:35 +0200
From: tony@svanstrom.com (Tony L. Svanstrom)
Subject: Re: Perl Regexp
Message-Id: <1efztcc.2t76wy1a67ccwN%tony@svanstrom.com>
Curtis Hawthorne <cghawthorne@yahoo.com> wrote:
> Any ideas would be appreciated!
Here's an idea, read the replies to your question instead of asking the
same question again a day or so later.
/Tony
--
/\___/\ Who would you like to read your messages today? /\___/\
\_@ @_/ Protect your privacy: <http://www.pgpi.com/> \_@ @_/
--oOO-(_)-OOo---------------------------------------------oOO-(_)-OOo--
on the verge of frenzy - i think my mask of sanity is about to slip
---ôôô---ôôô-----------------------------------------------ôôô---ôôô---
\O/ \O/ ©99-00 <http://www.svanstrom.com/?ref=news> \O/ \O/
------------------------------
Date: Sat, 26 Aug 2000 22:36:37 +0200
From: sumus@aut.dk (Jakob Schmidt)
Subject: Re: Perl Regexp
Message-Id: <1efzszw.rtq7qs1rqo4qoN@[192.168.88.117]>
Curtis Hawthorne <cghawthorne@yahoo.com> wrote:
> Hi!
Hi
If the paths are all of the form
> (/home/person/public_html/img.gif)
then it seems more reasonable to ask for anythin that comes after
...public_html/ than
> everything from the last "/" on
That way you can use the substitution even if the image is not directly
in the users html base dir.
And you probably want to extract the user name as well?
Fortunately that's the bit just _before_ /public_html.
How about
$path = '/home/person/public_html/img.gif';
my ( $user, $image_file ) = $path =~ m#([^/]*)/public_html/(.*)#;
Maybe you should also read perlre and the perlop section on regexp like
operators...
--
Jakob
------------------------------
Date: Sat, 26 Aug 2000 15:54:41 -0500
From: Curtis Hawthorne <cghawthorne@yahoo.com>
Subject: Re: Perl Regexp
Message-Id: <39A82E91.63CE8ADC@yahoo.com>
Sorry, I didn't mean to post it again. And I did read your replies,
thanks for your ideas!
"Tony L. Svanstrom" wrote:
>
> Curtis Hawthorne <cghawthorne@yahoo.com> wrote:
>
> > Any ideas would be appreciated!
>
> Here's an idea, read the replies to your question instead of asking the
> same question again a day or so later.
>
> /Tony
> --
> /\___/\ Who would you like to read your messages today? /\___/\
> \_@ @_/ Protect your privacy: <http://www.pgpi.com/> \_@ @_/
> --oOO-(_)-OOo---------------------------------------------oOO-(_)-OOo--
> on the verge of frenzy - i think my mask of sanity is about to slip
> ---ôôô---ôôô-----------------------------------------------ôôô---ôôô---
> \O/ \O/ ©99-00 <http://www.svanstrom.com/?ref=news> \O/ \O/
------------------------------
Date: Sat, 26 Aug 2000 16:08:49 -0500
From: Curtis Hawthorne <cghawthorne@yahoo.com>
Subject: Re: Perl Regexp
Message-Id: <39A831E1.5738E027@yahoo.com>
Thanks! It worked perfectly.
Jakob Schmidt wrote:
>
> Curtis Hawthorne <cghawthorne@yahoo.com> wrote:
>
> > Hi!
>
> Hi
>
> If the paths are all of the form
>
> > (/home/person/public_html/img.gif)
>
> then it seems more reasonable to ask for anythin that comes after
> ...public_html/ than
>
> > everything from the last "/" on
>
> That way you can use the substitution even if the image is not directly
> in the users html base dir.
>
> And you probably want to extract the user name as well?
>
> Fortunately that's the bit just _before_ /public_html.
>
> How about
>
> $path = '/home/person/public_html/img.gif';
>
> my ( $user, $image_file ) = $path =~ m#([^/]*)/public_html/(.*)#;
>
> Maybe you should also read perlre and the perlop section on regexp like
> operators...
>
> --
> Jakob
------------------------------
Date: Sat, 26 Aug 2000 21:20:14 GMT
From: Sundar <sdoraira@vt.edu>
Subject: reading and writing file contents
Message-Id: <8o9ca2$dur$1@nnrp1.deja.com>
Here's the code in question from a counter I obtained from
http://www.freecode.com/:
# Logging
open (datk, ">>$log");
print datk "append stuff";
close (datk);
# Get contents of Log
open (datk, "$log");
$data = <datk>; # could this line be the problem?
close (datk);
# Print Sheet
open (logs,">$stat");
print logs "write some HTML";
print logs $data; # write contents of log #
print logs "write some more HTML";
close (logs);
The problem is that $data is only the first line of the log and not the
entire log file. The logging works as I have checkd the log file after
it has been appended. I am new to PERL (2 days) so any help will be
appreciated.
--
Sundar Dorai-Raj
Department of Statistics
Virginia Tech
sdoraira@vt.edu
Sent via Deja.com http://www.deja.com/
Before you buy.
------------------------------
Date: Sat, 26 Aug 2000 15:53:13 -0500
From: Curtis Hawthorne <cghawthorne@yahoo.com>
Subject: Re: Regexp Question
Message-Id: <39A82E39.B2398273@yahoo.com>
Another problem with those solutions is that the images will be comming
from different user's pages. The script will need to be able to work
with /home/person1/public_html/img1.gif and
/home/person2/public_html/img2.gif. Also, I'm no perl expert, what does
the "!" do?
Thanks,
Curtis
"Tony L. Svanstrom" wrote:
>
> Jeff Helman <jlhelman@home.com> wrote:
>
> > cghawthorne@yahoo.com wrote:
>
> > > I have a question on constructing a regexp. I'm designing a CGI script
> > > that will need to take an image file name
> > > (/home/person/public_html/img.gif)
> > > and translate it to something that can be used in an <img> tag
> > > (example.com/~person/img.gif). The easiest way I can think of to do
> > > this is to use a regexp to return everything from the last "/" on and
> > > deal with it from there.
> > >
> > > Any ideas would be appreciated!
> > >
> >
> > If we can assume that you are running Apache on some flavor of /*+nix/,
> > then the following should work (diddle as needed):
> >
> > my $Image = "/home/person/public_html/img.gif";
> > $Image =~ s!^/home/!www.someserver.com/~!;
> >
> > Thus, the regex strips "/home/" and replaces it with the Apache URL for
> > the home directory of whomever.
> >
> > Hope this helps.
>
> That wont work, because the public_html-part must be removed to.
>
> /Tony
> --
> /\___/\ Who would you like to read your messages today? /\___/\
> \_@ @_/ Protect your privacy: <http://www.pgpi.com/> \_@ @_/
> --oOO-(_)-OOo---------------------------------------------oOO-(_)-OOo--
> on the verge of frenzy - i think my mask of sanity is about to slip
> ---ôôô---ôôô-----------------------------------------------ôôô---ôôô---
> \O/ \O/ ©99-00 <http://www.svanstrom.com/?ref=news> \O/ \O/
------------------------------
Date: Sat, 26 Aug 2000 21:05:54 GMT
From: Jeff Helman <jhelman@wsb.com>
Subject: Re: Regexp Question
Message-Id: <39A831A8.3E8BD352@wsb.com>
Curtis Hawthorne wrote:
>
> Another problem with those solutions is that the images will be comming
> from different user's pages. The script will need to be able to work
> with /home/person1/public_html/img1.gif and
> /home/person2/public_html/img2.gif. Also, I'm no perl expert, what does
> the "!" do?
Okay, then. How's this:
## SET SERVER NAME HERE
my $ServerName = "some.server.net";
## INITIALIZE FILE NAME HERE SINCE WE CAN'T GET IT ELSEWHERE
my $File = "/home/person2/public_html/img1.gif";
## HERE'S YOUR SUBSTITUTION
$File =~ s!^/home/([^/]+)/public_html/(.+)$!http://$ServerName/~$1/$2!;
In terms of what the exclamation mark is for, perl allows you to chose
any delimiter in your substitution regex. Since for our purposes the
default delimiter (a forward slash) is significant in the string, we
need to choose something else. Since exclamation marks are not usually
significant for me, I just use it as my default choice. You could use
pretty much anything.
> Thanks,
>
> Curtis
You're welcome.
JH
------------------------------
Date: Sat, 26 Aug 2000 23:07:25 +0200
From: sumus@aut.dk (Jakob Schmidt)
Subject: Re: Regexp Question
Message-Id: <1efzufu.ug548z15g78zzN@[192.168.88.117]>
Curtis Hawthorne <cghawthorne@yahoo.com> wrote:
> Another problem with those solutions is that the images will be comming
> from different user's pages. The script will need to be able to work
> with /home/person1/public_html/img1.gif and
> /home/person2/public_html/img2.gif.
my $server = 'www.example.com';
my $image = '/home/person1/public_html/img1.gif';
$image =~ s!.*/([^/]*)/public_html/(.*)!$server/~$1/$2!;
This handles different users and subfolders. If you only need the one
server you can of course just put it directly into the substitution in
stead of using a variable.
The ! is just a quotation delimiter for the s/// operator. We chose
something other than / to avoid havin to escape each slash in the
expression.
As you can se in the code I posted as a followup to the copy of your
post (which I hope you posted by accident) other delemiters such as #
could have been used. Now read them docs :-)
--
Jakob
------------------------------
Date: Sat, 26 Aug 2000 19:45:02 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: Self-Answering Questions (Was Re: Flipflop matching)
Message-Id: <db7gqs05cafc221a2gbgrvjgtn7tbctg1d@4ax.com>
Ooh I've got some counter-examples.
Larry Rosler wrote:
> How do I continue executing within a block?
(Heh? What are you saying?)
> How do I delete a hash element?
How do I delete a file?
> How do I get my program to die with an error message?
How do I get my program to die *without* an error message?
> How do I make my program wait for completion of a child process?
How do I get my program to wait for a keypress?
--
Bart.
------------------------------
Date: Sat, 26 Aug 2000 19:46:23 GMT
From: Bart Lateur <bart.lateur@skynet.be>
Subject: Re: Self-Answering Questions (Was Re: Flipflop matching)
Message-Id: <1k7gqs4ohi06da5udscu5ti6i0iqepgjik@4ax.com>
Martien Verbruggen wrote:
>One of
>the ugliest things that I think Perl has is the elsif.
As an aside: why doesn't perl have an "elsunless"?
--
Bart.
------------------------------
Date: Sat, 26 Aug 2000 20:09:37 GMT
From: gbacon@HiWAAY.net (Greg Bacon)
Subject: Re: Self-Answering Questions (Was Re: Flipflop matching)
Message-Id: <sqg901gjt91174@corp.supernews.com>
In article <1k7gqs4ohi06da5udscu5ti6i0iqepgjik@4ax.com>,
Bart Lateur <bart.lateur@skynet.be> wrote:
: Martien Verbruggen wrote:
:
: >One of
: >the ugliest things that I think Perl has is the elsif.
:
: As an aside: why doesn't perl have an "elsunless"?
elsunless? Yuck. Gag me with a smurfette.
Greg
--
Or you might build your program to talk to a cheap, crappy database like
MS Access, and then next year when the application is doing well and getting
more use than you expected, you can upgrade to a better database next year
without changing any of your code. -- mjd
------------------------------
Date: 26 Aug 2000 14:26:04 -0700
From: tchrist@perl.com (Tom Christiansen)
Subject: Re: selling perl to management
Message-Id: <39a827dc@cs.colorado.edu>
In article <stevel-2508001512240001@192.168.100.2>,
Steve Leibel <stevel@bluetuna.com> wrote:
>And if you are an honest engineer you must answer, "Yes. Perl upgrades
>are generally messy. The Perl community regards new features as more
>important than guaranteed backward compatability. Moreover, the Perl
>community is insistent in its position that standardizing the language is
>evil. No one can even guarantee that "while" loops will be part of the
>language in the future. There is no such thing as a Perl language
>standard. The language is defined as whatever the developers release.
>And if it breaks last week's version, that's a problem, but it's not their
>problem."
Whether this untruth comes down to an intentional lie or an intentional
error, the fact remains that this is not merely spectacularly false,
it is also an excercise in needlessly hysterical fear-mongering.
It is destructive and evil--and full of shit.
--tom
------------------------------
Date: Sat, 26 Aug 2000 20:06:17 +0000 (UTC)
From: efflandt@xnet.com (David Efflandt)
Subject: Re: SendMail and IIS
Message-Id: <slrn8qg8pb.mut.efflandt@efflandt.xnet.com>
On Fri, 25 Aug 2000 10:06:38 +0200, Thierry <info@ezboo.com.xx> wrote:
>
>I am writting a simple script in Perl to make a Formail (form sent by
>e-mail) on my web site.
>It does not work !
>How can I know if SendMail is installed on the server (Win NT, running IIS)
Ask your server admin (and give them a good laugh). 'sendmail' is a
common Unix program, although, some other programs that work similarly
link to that name.
NT does not have a native SMTP server, although, there is an optional SMTP
service in NT Option Pack 4. But some NT boxes use 3rd party programs.
Does your web host give any clue in their CGI FAQ?
You could try the Perl Mail::Sendmail module. I have used that on Unix
servers that had no sendmail (due to past spamming).
--
David Efflandt efflandt@xnet.com http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://hammer.prohosting.com/~cgi-wiz/ http://cgi-help.virtualave.net/
------------------------------
Date: 26 Aug 2000 18:34:05 GMT
From: Tina Mueller <tina@streetmail.com>
Subject: Re: What is a Linux file type of 'application/x-cgi' ?
Message-Id: <8o92is$a6h65$1@ID-24002.news.cis.dfn.de>
hi,
gevens@my-deja.com wrote:
> I have been given a Linux server with a web site to pick through.
> The home/website/cgi directory contains what I hoped to be cgi scripts
> in a plain text format, but instead contains cgi scripts in a format
> that almost look like they have been compiled in some way.
what is your perl question?
what does "compiled in some way" mean?
maybe these are CGI scripts written in C...
if you know they are perl scripts and you cannot
read the source, then I would be interested
to look at them...
tina
--
http://tinita.de \ enter__| |__the___ _ _ ___
tina's moviedatabase \ / _` / _ \/ _ \ '_(_-< of
search & add comments \ \__,_\___/\___/_| /__/ perception
please don't email unless offtopic or followup is set. thanx
------------------------------
Date: Sat, 26 Aug 2000 20:37:49 +0000 (UTC)
From: efflandt@xnet.com (David Efflandt)
Subject: Re: What is a Linux file type of 'application/x-cgi' ?
Message-Id: <slrn8qgakf.mut.efflandt@efflandt.xnet.com>
On Sat, 26 Aug 2000, gevens@my-deja.com <gevens@my-deja.com> wrote:
>
>I have been given a Linux server with a web site to pick through.
>
>The home/website/cgi directory contains what I hoped to be cgi scripts
>in a plain text format, but instead contains cgi scripts in a format
>that almost look like they have been compiled in some way.
Perhaps you are making the ever popular mistake of assuming that CGI has
something to do with Perl. There is nothing in CGI specifications that
says it has to be it be handled by a script or any certain language. It
could be a compiled binary program. Type the following in a commandline,
substituting an actual filename for 'filename.cgi':
file filename.cgi
--
David Efflandt efflandt@xnet.com http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://hammer.prohosting.com/~cgi-wiz/ http://cgi-help.virtualave.net/
------------------------------
Date: Sat, 26 Aug 2000 19:18:47 GMT
From: tim@degree.ath.cx (Tim Hammerquist)
Subject: Re: would you recommend buying a book
Message-Id: <slrn8qg6m9.k2.tim@degree.ath.cx>
Abigail <abigail@foad.org> wrote:
> Tim Hammerquist (tim@degree.ath.cx) wrote on MMDXLIX September MCMXCIII
> in <URL:news:slrn8q7gf8.66a.tim@degree.ath.cx>:
> {}
> {} Book advice: If it's published by O'Reilly and includes Perl in the
> {} title, it's worth the money.
>
> Cargo cult. It's one of the most idiotic advices I've heard.
I don't want to insult Godzilla! or anything, but I've noticed a
distinct similarity between the attitude and responses of our local
troll and Miss. Abigail.
I don't like to generalize my computer paraphernalia as much as I did
above, but the above statement holds true to date (with the possible
exceptions of the Learning Perl sub-category, and the addition of Damian
Conway's Object Oriented Perl).
The fact is, O'Reilly is an excellent publisher with excellent books.
The fact that it's trendy (Cargo cult, in your language) may just be (in
this case) an indicator of it's effectiveness.
--
-Tim Hammerquist <timmy@cpan.org>
My life has a superb cast but I can't figure out the plot.
-- Ashleigh Brilliant
------------------------------
Date: Sat, 26 Aug 2000 20:42:58 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Writing FAQs via PERL
Message-Id: <Pine.GHP.4.21.0008262029200.11020-100000@hpplus03.cern.ch>
On Sat, 26 Aug 2000, Mr. Ozette Brown blurted out:
> Check out something called the "FAQ-O-Matic".
It works well for me and others.
> You should be able to find it at CPAN.
Well, searches at CPAN for 'faqomatic' or 'faq-o-matic' failed, but
a search for 'faq' found it. The module's called FAQ::OMatic
Its documentation points to the author's home area:
http://www.dartmouth.edu/cgi-bin/cgiwrap/jonh/faq.pl
Beware however that the author's home page at
http://www.dartmouth.edu/~jonh/
says that the user account is due for deletion "since the owner is no
longer associated with Dartmouth College".
My personal recommendation would be positive. There are numerous
reputable sites making use of it "out there". But I thought it only
fair to note that its development status seems to be unclear at the
moment.
[jeopardectomy]
Please try to adopt usenet posting customs if you hope to work
together with the usenet community. There's quite enough people
trying to make it unusable right now.
------------------------------
Date: Sat, 26 Aug 2000 20:59:56 +0000 (UTC)
From: efflandt@xnet.com (David Efflandt)
Subject: Re: x10 devices
Message-Id: <slrn8qgbtt.mut.efflandt@efflandt.xnet.com>
On Sat, 26 Aug 2000 02:51:39 -0700, russb <x10@home.msmarket.com> wrote:
>I am looking for someone who might have any code that pertains to x10
>devices. Or help with a perl/CGI script that executes but never finishes.
>
>$result = `C:/progra~1/homeco~1/x10comm.exe E7 on`;
>or
>Exec `C:/progra~1/homeco~1/x10comm.exe E7 on`;
>
>I am working on an NT box. If I run the perl locally it works fine, however
>if I call the script from a browser the session hangs and I end up having
>to kill the session Id in NT.
>
>Bottom line is that I need a script that will run a command line function on
>the NT side from any browser based interface. Any ideas or coding that will
>do this
This has nothing to do with Perl. Refer to an NT newsgroup where somebody
knows how NT handles file and execute permissions. Many of us are
unfamiliar with such primative operating systems.
I used to have an X10 control box that had instructions for programming it
in BASIC (before Windows), and it also worked in Linux, before the X10
controller died.
--
David Efflandt efflandt@xnet.com http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://hammer.prohosting.com/~cgi-wiz/ http://cgi-help.virtualave.net/
------------------------------
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 4140
**************************************