[15989] in Perl-Users-Digest
Perl-Users Digest, Issue: 3401 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sat Jun 17 14:05:28 2000
Date: Sat, 17 Jun 2000 11:05:15 -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: <961265115-v9-i3401@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Sat, 17 Jun 2000 Volume: 9 Number: 3401
Today's topics:
__FILE__ <RUSTYNAIL@prodigy.net>
Re: __FILE__ <tony_curtis32@yahoo.com>
Re: Anybody doing Perl with WebLogic server? <sue@pennine.com>
Anyone use ActivePerl on Win95 or Win98 <shawnball@uswest.net>
Re: Anyone use ActivePerl on Win95 or Win98 <hedim@hta-bi.bfh.xxx>
Re: Anyone use ActivePerl on Win95 or Win98 <shawnball@uswest.net>
Re: Anyone use ActivePerl on Win95 or Win98 <bgregory3@cs.com>
Re: Bot for this group to auto-answer queries? (Eric Bohlman)
Re: Bot for this group to auto-answer queries? <henry@penninkilampi.net>
Re: Bot for this group to auto-answer queries? (Bart Lateur)
Re: Bot for this group to auto-answer queries? <henry@penninkilampi.net>
Content type !! <arun67@yahoo.com>
Re: Content type !! <hedim@hta-bi.bfh.xxx>
Re: Crazy enough that it might just work... (Tad McClellan)
Re: Crazy enough that it might just work... <gellyfish@gellyfish.com>
Re: Crazy enough that it might just work... <gellyfish@gellyfish.com>
Re: Crazy enough that it might just work... <henry@penninkilampi.net>
emailing an html document from unix <ervf@flashcom.net>
Re: emailing an html document from unix <dave@dave.org.uk>
Re: how do I "redirect" a substitution? <michael_roper@hotmail.com>
Re: HTML form to variables in a perl program <dave@dave.org.uk>
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Sat, 17 Jun 2000 10:40:04 -0400
From: "Martin Smith" <RUSTYNAIL@prodigy.net>
Subject: __FILE__
Message-Id: <8ig392$13fg$1@newssvr03-int.news.prodigy.com>
I see perl has __FILE__ and __LINE__ constants defined - usefull for error
tracing.
Is there something like __SUB__ to print out what function I'm in.
Thanks.
------------------------------
Date: 17 Jun 2000 11:05:54 -0500
From: Tony Curtis <tony_curtis32@yahoo.com>
Subject: Re: __FILE__
Message-Id: <87wvjoqom5.fsf@limey.hpcc.uh.edu>
>> On Sat, 17 Jun 2000 10:40:04 -0400,
>> "Martin Smith" <RUSTYNAIL@prodigy.net> said:
> I see perl has __FILE__ and __LINE__ constants defined -
> usefull for error tracing.
> Is there something like __SUB__ to print out what
> function I'm in.
perldoc -f caller
hth
t
--
"Trying is the first step towards failure"
Homer Simpson
------------------------------
Date: 17 Jun 2000 06:34:12 -0700
From: Sue Spence <sue@pennine.com>
Subject: Re: Anybody doing Perl with WebLogic server?
Message-Id: <8ifuok$2mak@drn.newsguy.com>
In article <39494E88.F325808B@My-Deja.com>, Makarand says...
>
>> I know that this question is not strictly on topic but I am hoping to get in
>> touch with anyone who has managed to do Perl CGI with a web server running
>>WebLogic 4.5 server s/w. I have not had to deal with this problem before, and I
>>don't feel like being forced to write Java servlets for fairly simple jobs that
>>can be implemented (and run) much faster in Perl. It feels like being forced to
>>use a sledgehammer to crack a nut. I have a hard time understanding why anyone
>>would market a web server product which doesn't handle anything other than Java
>> out of the box. It's like deciding that digital TV is the future and only
>> making TVs which decode digital signals and nothing else, regardless of what
>> sort of signal the majority of the market are currently able to receive.
>
>version 5.1 can do perl/cgi. A servlet named CGIServlet handles all CGI apps.
>Looking at the docs for ver 4.5 gives me the expression that it was not
>supported.
Yep, I know all that. I had also heard that a patch (CGIServlet class) had been
released for 4.5.1, and just wondered if anyone here was using it. I am still
waiting to hear from BEA. Oh well, thanks anyway.
------------------------------
Date: Sat, 17 Jun 2000 10:10:18 -0700
From: "Ferk Da Jerk" <shawnball@uswest.net>
Subject: Anyone use ActivePerl on Win95 or Win98
Message-Id: <FgM25.222$4k6.1780@news.uswest.net>
I downloaded ActivePerl. All the stuff was installed in the folder
C:\Perl\. When you work on a Unix system the heading would be
#!/usr/local/bin/perl but not on Windows. What am I supposed to replace it
with?
------------------------------
Date: Sat, 17 Jun 2000 17:26:26 +0200
From: Markus Hediger <hedim@hta-bi.bfh.xxx>
To: Ferk Da Jerk <shawnball@uswest.net>
Subject: Re: Anyone use ActivePerl on Win95 or Win98
Message-Id: <394B98A2.3F9C3EC6@hta-bi.bfh.xxx>
> When you work on a Unix system the heading would be
> #!/usr/local/bin/perl but not on Windows. What am I supposed to replace it
> with?
that depends on your webserver. in most cases, you don't have to replace
it, cause the server itself knows how to invoke the perl interpreter -
it is configured in the server's cgi configuration or in the "what to do
with .pl files" configuration.
otherwise, i think you can just write #! c:/perl/bin/perl.exe or
something like that - check wheter the perl interpreter exe file is
there, i think it should be in that directory.
however, it's a nice idea to add the path to perl.exe to the PATH
environment variable. then you can start perl form anywhere you want.
>> in my e-mail address, replace the .xxx tld with .ch
------------------------------
Date: Sat, 17 Jun 2000 11:31:15 -0700
From: "Ferk Da Jerk" <shawnball@uswest.net>
Subject: Re: Anyone use ActivePerl on Win95 or Win98
Message-Id: <ArN25.126$Nt1.13786@news.uswest.net>
I found out I just had to name it whatever.pl. So I have my script. When I
try to upload it on the browser it finds the local file and opens up PERL
and PERL runs it. What do I do so the browser runs it?
Ferk Da Jerk <shawnball@uswest.net> wrote in message
news:FgM25.222$4k6.1780@news.uswest.net...
> I downloaded ActivePerl. All the stuff was installed in the folder
> C:\Perl\. When you work on a Unix system the heading would be
> #!/usr/local/bin/perl but not on Windows. What am I supposed to replace
it
> with?
>
>
------------------------------
Date: Sat, 17 Jun 2000 18:43:09 +0200
From: "Bob Gregory" <bgregory3@cs.com>
Subject: Re: Anyone use ActivePerl on Win95 or Win98
Message-Id: <394baa0e$1@news.piro.net>
Hello Ferk
which version of perl did you download and what are you using for a
local server to test using perl?
I recently downloaded ActivePerl v522 from ActiveState.com and Apache
Web Server v 1.3.9 for windows (98) and started learning Perl. I am having
problems with the installation, because I can write a script, execute it in
a dos window (eg something simple like print a message 10 times), but I want
to have a form written in html which executes a perl program which takes the
fields in the form as input (e.g. ordering a product xyz,and returns the
data formatted (e.g. thank you for ordering xyz). the perl program sends
the reply to the dos window instead of to the Win IE browser. I am assuming
that when the Apache Web server software is running that it picks up the
output from the Perl programm.
This is very difficult to debug, but have you got any suggestions how I
could home in on the error? Is this similar to what you are trying to do?
Can you help me figure out what I need to do to correct this?
Ferk Da Jerk <shawnball@uswest.net> wrote in message
news:FgM25.222$4k6.1780@news.uswest.net...
> I downloaded ActivePerl. All the stuff was installed in the folder
> C:\Perl\. When you work on a Unix system the heading would be
> #!/usr/local/bin/perl but not on Windows. What am I supposed to replace
it
> with?
>
>
------------------------------
Date: 17 Jun 2000 14:24:16 GMT
From: ebohlman@netcom.com (Eric Bohlman)
Subject: Re: Bot for this group to auto-answer queries?
Message-Id: <8ig1mg$alj$2@slb7.atl.mindspring.net>
Henry (henry@penninkilampi.net) wrote:
: In article <8idube$995$1@srv38.cas.org>, lvirden@cas.org wrote:
: > Can you point to some truly useful agents and bots? I regret to
: > say that in my limited experience on internet (about 60 hrs a week
: > for 10-12 yrs) I don't recall encountering any of these - or if I
: > did encounter one, it was so cleverly written that I mistook it
: > for a human.
:
: Google, AltaVista, NorthernLight, Sherlock, and thousands of IRC bots on
: channels all around the world...
:
: 34,000 hours on the Internet, and you've _never_ used a search engine???
: I find that hard to believe.
The search-engine bots are listen-bots, not talk-bots. I think Larry was
talking about the latter.
------------------------------
Date: Sun, 18 Jun 2000 01:29:05 +0930
From: Henry <henry@penninkilampi.net>
Subject: Re: Bot for this group to auto-answer queries?
Message-Id: <henry-75F69D.01290518062000@news.metropolis.net.au>
In article <8ig1mg$alj$2@slb7.atl.mindspring.net>, ebohlman@netcom.com
(Eric Bohlman) wrote:
>>> Can you point to some truly useful agents and bots? I regret to
>>> say that in my limited experience on internet (about 60 hrs a week
>>> for 10-12 yrs) I don't recall encountering any of these - or if I
>>> did encounter one, it was so cleverly written that I mistook it
>>> for a human.
>>
>> Google, AltaVista, NorthernLight, Sherlock, and thousands of IRC
>> bots on channels all around the world...
>>
>> 34,000 hours on the Internet, and you've _never_ used a search
>> engine??? I find that hard to believe.
>
> The search-engine bots are listen-bots, not talk-bots. I think
> Larry was talking about the latter.
Listen-bots? Talk-bots? Hmmm...
All I know is that when I submit a form to Google, some computer goes
and searches through a database looking for pages that seem relevant to
my search criteria. It then returns a list of those matches,
hyperlinked to the original source, which allows me to narrow my search.
Apart from the medium in which the queries are submitted and answers
received, I see no significant difference between the service Google
provides and the service the bot (suggested in this thread) would
provide - except, of course, that sometimes the bot would have an actual
_answer_ instead of just a reference - making it superior to Google, in
that regard.
Human: "Here's my question"
Computer: "Here's a bunch of answers - hopefully one will help"
I'm happy to black-box it at that level for the purpose of this (moot)
discussion.
Henry.
------------------------------
Date: Sat, 17 Jun 2000 16:32:48 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: Bot for this group to auto-answer queries?
Message-Id: <394ca715.630484@news.skynet.be>
Henry wrote:
>So, there you have it. If the bot fails, then it just causes
>miscellaneous colateral damage. But if it succeeds, then it actually
>obliterates the social aspects of the group - which is what binds clpm
>together. It's a lose-lose situation for the group.
So, a bot that posts to the newsgroup isn't such a good idea. But what
about a FAQ-o-matic, a search engine dedicated to Perl FAQ's, for which
the URL could be posted here at sufficiently large intervals?
--
Bart.
------------------------------
Date: Sun, 18 Jun 2000 03:32:59 +0930
From: Henry <henry@penninkilampi.net>
Subject: Re: Bot for this group to auto-answer queries?
Message-Id: <henry-8EDC88.03325918062000@news.metropolis.net.au>
In article <394ca715.630484@news.skynet.be>, bart.lateur@skynet.be
(Bart Lateur) wrote:
> So, a bot that posts to the newsgroup isn't such a good idea. But what
> about a FAQ-o-matic, a search engine dedicated to Perl FAQ's, for which
> the URL could be posted here at sufficiently large intervals?
Isn't it Tom Phoenix who regularly posts a pointer to the Perl FAQ in
this group? Maybe coercing him into inserting a link to
<http://www.perlfaq.com/> in that document would be the go?
Henry.
------------------------------
Date: Sat, 17 Jun 2000 13:30:07 GMT
From: Arun Mahajan <arun67@yahoo.com>
Subject: Content type !!
Message-Id: <skmvava5is4136@corp.supernews.com>
Hi Everybody,
Is there anybody who could tell me why i am getting this output.
code:-
------
print "Content-type: text/html\n\n";
print "Hello World\n";
output:-
-------
Content-type: text/html
Hello World
does it mean I can not specify my content type.
Moreover is it possible to make a program to get back all content type. can
you provide a sample code.
thanks and regards,
Arun
--
Posted via CNET Help.com
http://www.help.com/
------------------------------
Date: Sat, 17 Jun 2000 17:19:48 +0200
From: Markus Hediger <hedim@hta-bi.bfh.xxx>
To: Arun Mahajan <arun67@yahoo.com>
Subject: Re: Content type !!
Message-Id: <394B9714.7B2B380D@hta-bi.bfh.xxx>
> code:-
> ------
> print "Content-type: text/html\n\n";
> print "Hello World\n";
what other output did you expect? :)
serious: how are you running that script? thru a standart http server?
if yes, to me it seems like the server is configured wrong. instead of
directly passing the script's output to the client, it adds an own
header. because after the server's header comes a blank line, the
browser thinks: "Cool... actually that content looks like a header -
well, it must be content, there was a blank line before!" :)
> a program to get back all content type
get all content type from where? i don't understand what you mean.
>> in my e-mail address, replace the .xxx tld thru .ch
------------------------------
Date: Sat, 17 Jun 2000 10:22:29 -0400
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Crazy enough that it might just work...
Message-Id: <slrn8kn2d5.a7j.tadmc@magna.metronet.com>
On Sat, 17 Jun 2000 20:25:32 +0930, Henry <henry@penninkilampi.net> wrote:
>In article <8idphl$e9$1@news.NERO.NET>, stanley@skyking.OCE.ORST.EDU
>(John Stanley) wrote:
>
>>>> Who is the "we" who is rejecting this post?
>>>
>>> Execution via script. Parameters determined by group consensus.
>>
>> I'm sorry, I meant for you to think about what you were saying before
>> whipping off another silly answer.
>
>Are you _always_ such a facetious prick, or is this attitude something
>you've been saving up just for me? What, did my viking ancestors raid
>your ancestor's little village at the turn of the last millenium, and
>this is payback for a blood feud? Sheesh.
And now you are going to respond in kind.
Sheesh!
>> Where is this "script",
>
>It's stored on a hard drive, John, and because this is the Internet,
>John, it doesn't matter where it is, John. Duh.
Seemed clear to me that he wanted to see the 'bot's source code.
>> and who runs it?
>
>Have a wild guess - name rhymes with "CRON".
Seemed clear to me that he wanted to know who was going to
control it.
i.e. who decides what "matches", and gets special treatment.
>> How do we make sure that all articles posted go to that script
>> and not to the group like they normally do?
>
>YOU read the FAQs in news.groups.questions, and then _you_ ask a more
>intelligent question.
John couched it baitingly, but you don't have to swallow the hook.
I think he meant that unmoderated newsgroups (like the one being
discussed here) do not have any special rules that would force
things to be passed through the script.
Making clp.misc a moderated newsgroup has not a prayer of passing a vote.
>> Who mandates that they cannot be posted?
^^^
^^^
>Read the original article, and my response to your previous post,
>_again_ - you're obviously having problems with sentences containing
>words with more than one syllable.
Seems reasonable to me to want to know who the cabal would be,
so that we could evaluate whether or not we trust them.
I wouldn't want control given to an unspecified batch of people either.
(and for clp.misc, I wouldn't want control given to _any_ batch of people)
>Look, John, if you didn't like the idea, then why not just say so, maybe
>state a couple of reasons, and then ignore the rest of the thread?
He likes to be the devil's advocate.
If you watch him long enough, you can find him arguing on
both sides of an issue.
I expect the point is to have discussion about things that would
otherwise not even be discussed.
This is a Good Thing (though he surely could state things more clearly).
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: 17 Jun 2000 12:30:13 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Crazy enough that it might just work...
Message-Id: <8ifng5$cc7$1@orpheus.gellyfish.com>
On Thu, 15 Jun 2000 14:41:02 -0500 Reuben Logsdon wrote:
>
> Asking Perl questions seems like a perfectly acceptable activity here.
> Even by those who haven't contributed any other posts, and haven't
> suffered through the archives of other messages.
>
Precisely. Its not a matter of who is posting its a matter of what is
being posted. A first time poster might well have a most excellent
contribution to make in the form a question or indeed some informative
article.
/J\
--
** This space reserved for venue sponsor for yapc::Europe **
<http://www.yapc.org/Europe/>
------------------------------
Date: 17 Jun 2000 12:32:59 +0100
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Crazy enough that it might just work...
Message-Id: <8ifnlb$ctb$1@orpheus.gellyfish.com>
On Thu, 15 Jun 2000 16:34:24 -0400 Drew Simonis wrote:
>
> I think you are assuming that during that 8 day wait that the parasite
> will go out and learn.
I think they will just post the same question until the message comes
up and they get an answer.
/J\
--
** This space reserved for venue sponsor for yapc::Europe **
<http://www.yapc.org/Europe/>
------------------------------
Date: Sun, 18 Jun 2000 03:13:18 +0930
From: Henry <henry@penninkilampi.net>
Subject: Re: Crazy enough that it might just work...
Message-Id: <henry-203116.03131818062000@news.metropolis.net.au>
In article <slrn8kn2d5.a7j.tadmc@magna.metronet.com>,
tadmc@metronet.com (Tad McClellan) wrote:
>>>>> Who is the "we" who is rejecting this post?
>>>>
>>>> Execution via script. Parameters determined by group consensus.
...
>>> and who runs it?
>>
>> Have a wild guess - name rhymes with "CRON".
>
> Seemed clear to me that he wanted to know who was going to
> control it.
>
> i.e. who decides what "matches", and gets special treatment.
Well, given that I'd _already_answered_ that question ("Parameters
determined by group consensus") I gathered he was on about something
else.
And just to shut the gate before the horse bolts: I never made _any_
mention about special treatment. New posters' messages simply get
delayed - that's all I said. *ALL* new posters. (New posters being
determined (probably) in a fashion akin to the statistics bot, which I
believe (?) is on the basis of unique email addresses.) There is no
suggestion, whatsoever, about preferential treatment at the user level;
nor would the _content_ of any message ever be taken into consideration.
It is _not_ a filter, a censor, a moderator, or anything like that.
>>> How do we make sure that all articles posted go to that script
>>> and not to the group like they normally do?
...
> John couched it baitingly, but you don't have to swallow the hook.
Seemed clear to me that he didn't know how the technical aspects work.
And given that they are _clearly_ described in the FAQs...
> I think he meant that unmoderated newsgroups (like the one being
> discussed here) do not have any special rules that would force
> things to be passed through the script.
One (authenticated) control post can change all that. Trivial.
> Making clp.misc a moderated newsgroup has not a prayer of passing
> a vote.
Hmmm... Most people associate the word "moderated" with "censored".
They envision a _human_ reading through their posts and deciding
_whether_or_not_ it is 'worthy'. No-one wants their posts censored,
that's why few people post to clp.moderated.
But, a _non-judgmental_ program that doesn't care who you are, where you
come from, what your circumstances are, what opinions you have, who
you've insulted in the past, and (in effect) serves merely to _delay_
your first piece of correspondence, well, that's a
_completely_different_ issue.
There are many shades to "moderation" - some _much_ more acceptable than
others.
Of course, there are extremist freaks in this newsgroup who would
attempt to paint all forms of moderation with the same brush. Sometimes
they succeed. Sometimes they don't - common sense prevails.
(That said, I'd like to remind one and all that I'm actually a
_proponent_ of maintaining this as an environment where extremist freaks
can do their thing (as my posting history will attest). We need
extremist freaks. Extremist freaks are healthy for the culture. Go
freaks, go!)
>> Look, John, if you didn't like the idea, then why not just say so,
>> maybe state a couple of reasons, and then ignore the rest of the
>> thread?
>
> He likes to be the devil's advocate.
>
> If you watch him long enough, you can find him arguing on
> both sides of an issue.
>
> I expect the point is to have discussion about things that would
> otherwise not even be discussed.
I got the impression that he was ignoring the content of the previous
posts, and repeatedly asking the same bloody question over and over
again using different words just to piss me off and get a rise.
Since that is a tactic _I_ use in other groups (when I'm bored, have
nothing better to do, and need some entertainment), and I hadn't really
had a chance to vent at anyone for quite a while, I took the opportunity
to blow off some steam. Quite refreshing!
> This is a Good Thing (though he surely could state things more
> clearly).
But clarity stifles arguments!
Look, John has trollish tendencies (and to be fair about this, I also
have trollish tendencies). A feature of trolls is that sometimes they
value the argument itself more than the content it's over, or even the
outcome.
It's hard to argue over a simple, clear-cut issue, so trolls _add_words_
which then allow them to twist the meaning of what was said so that it
contradicts or distorts the intent of the original author.
Having one's words so blatantly 'misinterpreted' is _infuriating_, so
one responds with an extensive explanatory note, which contains even
_more_ words, which the troll can then _also_ turn back on the author.
The resulting furore can be most amusing, and I think it is a
significant contributing factor to the number of witty signatures that
have come into existence.
I'll have to say one thing, though: I've never seen a troll employ, in
their opening salvo, the tactic of insinuating that the _other_ party is
in fact the one doing the trolling. That's _extremely_ devious, and
could only be the result of _years_ of honing one's skills. I am in the
presence of a master!
Henry.
PS: For those that like to be picky about things, here's a smiley: :)
Please feel free to duplicate this emoticon as many times as necessary,
and insert into as many places as necessary, to deflate your desire to
respond to this message.
PPS: For the pedants out there who do not consider "trolling" to be a
proper word, well, trolling is what trolls do, and unless you've got a
UseNet-accepted alternative, I don't want to hear about it. Oh, and
"trawling" is unacceptable, as is "baiting", and all similar descriptors
- we are not fish.
------------------------------
Date: Sat, 17 Jun 2000 09:34:11 -0700
From: erv <ervf@flashcom.net>
Subject: emailing an html document from unix
Message-Id: <394BA87A.2672338C@flashcom.net>
Hi,
I'm trying to send and html document via email. I'm running perl5 on
Aix 4.3.2 . How can I do this? I am a newbie perl programmer, just
trying to hack some existing code. The code currently creates an html
form that it stores and then mails out a text form. I would just like
to eliminate the text form and email the html coded form instead.
Thanks for your help.
------------------------------
Date: Sat, 17 Jun 2000 18:06:49 +0100
From: Dave Cross <dave@dave.org.uk>
Subject: Re: emailing an html document from unix
Message-Id: <6tbnksgb0bcf70umqddgvmghbnv4k5mriv@4ax.com>
On Sat, 17 Jun 2000 09:34:11 -0700, erv <ervf@flashcom.net> wrote:
>Hi,
>I'm trying to send and html document via email. I'm running perl5 on
>Aix 4.3.2 . How can I do this? I am a newbie perl programmer, just
>trying to hack some existing code. The code currently creates an html
>form that it stores and then mails out a text form. I would just like
>to eliminate the text form and email the html coded form instead.
Well, you shouldn't really just sent out an HTML version - you're
bound to annoy a great many people with text-only mail clients.
What you _should_ do is create a MIME message where one elememt is the
text versnio of the message and another is the HTML version. It's easy
enough to build out MIME messages using the MIME-Tools or MIME-Lite
bundles whic you can find on CPAN.
hth,
Dave...
--
<http://www.dave.org.uk> SMS: sms@dave.org.uk
yapc::Europe - London, 22 - 24 Sep <http://www.yapc.org/Europe/>
"There ain't half been some clever bastards" - Ian Dury [RIP]
------------------------------
Date: Sun, 18 Jun 2000 03:46:47 +1000
From: "Michael Roper" <michael_roper@hotmail.com>
Subject: Re: how do I "redirect" a substitution?
Message-Id: <8igdev$g9e$1@metro.ucc.usyd.edu.au>
> >While I'm at it a "writeln" equivalent would be nice. How often do we
> >use:
> >
> > print "$scalar\n";
> >
> >where
> > println $scalar;
> >
> >would be neat.
>
> Set $\ to "\n".
Thats only any good if you're always printing out newline terminated lines!
Oh for a println!
------------------------------
Date: Sat, 17 Jun 2000 15:15:44 +0100
From: Dave Cross <dave@dave.org.uk>
Subject: Re: HTML form to variables in a perl program
Message-Id: <ft1nkskj76qpch895bh7hhukug2p4ebc0q@4ax.com>
On Sat, 17 Jun 2000 12:52:15 +0100, "James" <fromnews@pagepool.co.uk>
wrote:
>Can someone please tell me the simplest way to get all the variables from an
>HTML form?
As Tom pointed out to you in response to your last post, you should
check out the documentation of the CGI module. Particularly the
'param' functions.
Generally you should wait at least a day before thinking that no-one
has answered your posts as Usenet is not an instantanous medium.
hth,
Dave...
--
<http://www.dave.org.uk> SMS: sms@dave.org.uk
yapc::Europe - London, 22 - 24 Sep <http://www.yapc.org/Europe/>
"There ain't half been some clever bastards" - Ian Dury [RIP]
------------------------------
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 3401
**************************************