[10983] in Perl-Users-Digest
Perl-Users Digest, Issue: 4583 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Jan 8 06:07:24 1999
Date: Fri, 8 Jan 99 03:00:19 -0800
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Fri, 8 Jan 1999 Volume: 8 Number: 4583
Today's topics:
Re: autorun CGI dave@mag-sol.com
binmode for premature eof-prevention of text-files jcm@oip.be
Re: Case Modification (Abigail)
Re: Does anyone know how to add blind carbon copies (Bc (Abigail)
Re: geting arguments (Abigail)
Re: geting arguments dave@mag-sol.com
Re: is there a hex print of strings? <B.A.McCauley@bham.ac.uk>
Re: is there a hex print of strings? <ibelgaufts@gfc-net.de>
Re: messageboard (Abigail)
Re: Web page lay out module (Andy Wardley)
Re: Web page lay out module dave@mag-sol.com
Re: Why Is Perl not a Language? (Bart Lateur)
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 08 Jan 1999 10:10:38 GMT
From: dave@mag-sol.com
Subject: Re: autorun CGI
Message-Id: <774liu$mfh$1@nnrp1.dejanews.com>
In article <36953AE2.A89D29BA@slip.net>,
John Dixon <jdixon@slip.net> wrote:
> Anybody have suggestions to get a HTML page to automatically run a CGI
> when a user hits that page?
This probably depends on your web server and how you configure it. Using
Apache (as most people do) it's simple enough to configure the server to
recognise index.cgi as the default page for a directory.
Dave...
--
Dave Cross
Magnum Solutions Ltd: <http://www.mag-sol.com/>
London Perl M[ou]ngers: <http://london.pm.org/>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Fri, 08 Jan 1999 10:48:06 GMT
From: jcm@oip.be
Subject: binmode for premature eof-prevention of text-files
Message-Id: <3695dc66.271523890@194.109.6.91>
Hi,
some basic question,
the history of this newsgroup suggests binmode,
but could someone make some suggestions
to my code, to make it work. TIA
The purpose of this code is
to convert some Wordfect & Word
files in batch to plain ascii.
The relevant text starts after the word
procedure, all data in front of it is purely
WP & Word preamble and formatting binary codes.
--------------------------------------------------------
binmode(STDIN);
$inp = <>;
while ($inp !~ /PROCEDURE /) {$inp = <>;}
$inp =~ tr/a-zA-Z0-9/ /cs;
print $inp;
while($inp = <>)
{
$inp =~ tr/a-zA-Z0-9/ /cs;
print $inp;
}
__END__
---------------------------------------------------------
------------------------------
Date: 8 Jan 1999 10:00:12 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Case Modification
Message-Id: <774kvc$iu7$2@client3.news.psi.net>
Andy Biegel (andy@xsite.net) wrote on MCMLV September MCMXCIII in
<URL:news:3694FD5F.8A789676@xsite.net>:
__
__ How can I go about taking a string (for example):
__ and modifying it so that only the first letter of each word is
__ capitalized? Any help would be appreciated.
FAQ
Abigail
------------------------------
Date: 8 Jan 1999 10:01:45 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Does anyone know how to add blind carbon copies (Bcc's) to Sendmail?
Message-Id: <774l29$iu7$3@client3.news.psi.net>
John (news@coupon1.com) wrote on MCMLVI September MCMXCIII in
<URL:news:773iv0$llt$1@camel29.mindspring.com>:
__ For some reason, our Sendmail ignores the "Bcc:account@domain" line.
For some reason, my goldfish died.
Abigail
------------------------------
Date: 8 Jan 1999 10:03:38 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: geting arguments
Message-Id: <774l5q$iu7$4@client3.news.psi.net>
Matevz Sernc (euhost@euhost.com) wrote on MCMLV September MCMXCIII in
<URL:news:36952702.1F555771@euhost.com>:
%% Hello
%%
%% I want that some user click on following link:
%% http://www.domain.xyz/cgi-bin/here.cgi?user=mk10
%%
%% --
%% How can i get the part after the "?" in a variable in here.cgi ??
%%
%% I then want to do an user-dependent output to the browser.
%%
%% But how to get the "mk10" in a variable ??
The answer the perl aspect of this question:
You use the assign operator. "man perlop".
Abigail
------------------------------
Date: Fri, 08 Jan 1999 10:01:42 GMT
From: dave@mag-sol.com
Subject: Re: geting arguments
Message-Id: <774l25$m1f$1@nnrp1.dejanews.com>
In article <36952702.1F555771@euhost.com>,
Matevz Sernc <euhost@euhost.com> wrote:
> Hello
>
> I want that some user click on following link:
> http://www.domain.xyz/cgi-bin/here.cgi?user=mk10
>
> --
> How can i get the part after the "?" in a variable in here.cgi ??
>
> I then want to do an user-dependent output to the browser.
>
> But how to get the "mk10" in a variable ??
>
> Can anyone help me ? (maybe someone has an simple cgi, i can see at)
#!/usr/bin/perl -w
use strict;
use CGI (:standard);
print header;
print start_html;
my $user = param('user');
print p("The user is $user");
print end_html;
hth,
Dave...
--
Dave Cross
Magnum Solutions Ltd: <http://www.mag-sol.com/>
London Perl M[ou]ngers: <http://london.pm.org/>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Fri, 8 Jan 1999 08:31:34 +0000
From: Brian McCauley <B.A.McCauley@bham.ac.uk>
Subject: Re: is there a hex print of strings?
Message-Id: <u91zl6ulq4.fsf@wcl-l.bham.ac.uk>
stevenba@ccpl.carr.org (Steven Barbash) writes:
> Is there a function or module or ... that inputs a string and outputs its
> hex value?
> source: "this is a test"
> output: "7468697320697320612074657374"
( unpack "H*", "this is a test" )[0]
--
\\ ( ) No male bovine | Email: B.A.McCauley@bham.ac.uk
. _\\__[oo faeces from | Phones: +44 121 471 3789 (home)
.__/ \\ /\@ /~) /~[ /\/[ | +44 121 627 2173 (voice) 2175 (fax)
. l___\\ /~~) /~~[ / [ | PGP-fp: D7 03 2A 4B D8 3A 05 37...
# ll l\\ ~~~~ ~ ~ ~ ~ | http://www.wcl.bham.ac.uk/~bam/
###LL LL\\ (Brian McCauley) |
------------------------------
Date: Fri, 08 Jan 1999 11:39:32 +0100
From: "J|rgen Ibelgaufts" <ibelgaufts@gfc-net.de>
Subject: Re: is there a hex print of strings?
Message-Id: <3695E064.7C963CCC@gfc-net.de>
HI,
try the following from the command line
perl -e "print unpack('H28', 'this is a test')"
where 22 is twice the length of your string, will print
7468697320697320612074657374
Hope this helps
Juergen Ibelgaufts
-----------------------------------------------------------------
Steven Barbash schrieb:
>
> Is there a function or module or ... that inputs a string and outputs its
> hex value?
>
> What I want is like this:
>
> source: "this is a test"
> output: "7468697320697320612074657374"
>
> Doc refs, samples, etc all welcome, as are related issues.
>
> Thanks,
> Steve
------------------------------
Date: 8 Jan 1999 10:05:42 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: messageboard
Message-Id: <774l9m$iu7$5@client3.news.psi.net>
robin (vdweiden@casema.net) wrote on MCMLV September MCMXCIII in
<URL:news:77314f$9sb$1@news.casema.net>:
&& hello,
&&
&& I was wondering somebody can tell me how to create a simple messageboard.
&& I mean just a normal page with links thats\ link to that message
&& and buttons
&& -post new message
&& -reply
&&
&& is that a hard thing?
No. But this isn't a gimmi gimmi group.
Abigail
------------------------------
Date: Fri, 8 Jan 1999 09:59:12 GMT
From: abw@cre.canon.co.uk (Andy Wardley)
Subject: Re: Web page lay out module
Message-Id: <F58Jqo.IHG@cre.canon.co.uk>
Hong Zhang <zhangh@corp.earthlink.net> wrote:
>I am looking for a GOOD web page lay out module,
>commercial or free. CGI.pm can not be used to gernerate
>complex web page. TableLayout is good but not enough.
Well, your definition of "GOOD" is likely to be somewhat subjective, but
anyway...
...have a look at Text::MetaText. It's allows you to define various
elements of pages in separate files and construct the lot together
using templates. It's got a script with it called "metapage" that
will do batch template processing of document trees (somewhat like
"make" for templates) abd can be used to "publish" your documents
from the source template tree into some other public html tree.
It can also be used from within CGI scripts to render the interface
for the script, allowing a consistency between static and dynamic pages.
A
--
Andy Wardley <abw@kfs.org> Signature regenerating. Please remain seated.
<abw@cre.canon.co.uk> For a good time: http://www.kfs.org/~abw/
------------------------------
Date: Fri, 08 Jan 1999 10:14:12 GMT
From: dave@mag-sol.com
Subject: Re: Web page lay out module
Message-Id: <774lpk$mhd$1@nnrp1.dejanews.com>
In article <Pine.GSO.4.03.9901071828050.711-100000@mhz.it.earthlink.net>,
Hong Zhang <zhangh@corp.earthlink.net> wrote:
>
> Hi all,
>
> I am looking for a GOOD web page lay out module,
> commercial or free. CGI.pm can not be used to gernerate
> complex web page. TableLayout is good but not enough.
What exactly are you trying to do that CGI.pm can't handle? If it can be
expressed in HTML then CGI.pm can produce that HTML.
Dave...
--
Dave Cross
Magnum Solutions Ltd: <http://www.mag-sol.com/>
London Perl M[ou]ngers: <http://london.pm.org/>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Fri, 08 Jan 1999 10:28:08 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: Why Is Perl not a Language?
Message-Id: <3696dc4f.2875268@news.skynet.be>
nick@macaw.demon.co.uk wrote:
>> Some points that may indicate a scripting language:
>>
>> 1) no user interface
>
>Ha ha, oh the influence of Microsoft. A language, scripting or not, is a set
>of rules defining a grammar for expressing ideas, and nothing to do with user
>interfaces. These days to write programms most people use an editor of some
>kind to edit the program text. Personally whether I am writing english, C++,
>sed, sh, or programs for my own languages I usually use emacs, and this has
>no bearing on the language I am writing.
You misunderstood me (you too).
I ment the programs you write with Perl, not the programs you write Perl
with.
You are talking about the IDE. I am not.
>> 2) stored as text, and, at earliest, compiled at startup.
>
>Perhaps the most reasonable identification of a scripting language.
>
>> 3) used to control other programs (this doesn't apply to Perl)
>
>Sure it applies to perl, it controls the perl interpreter (or rather the
>interpreter uses the programm to control itself), just as sh scripts control
>the sh program.
???
I mean contructs like
* `some_command`;
* system("some_command");
* open("| some_command");
where some_command is an external program.
For me, these constitute just a minimal part of my Perl usage. But,
that's probably just me.
Bart.
------------------------------
Date: 12 Dec 98 21:33:47 GMT (Last modified)
From: Perl-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Special: Digest Administrivia (Last modified: 12 Dec 98)
Message-Id: <null>
Administrivia:
Well, after 6 months, here's the answer to the quiz: what do we do about
comp.lang.perl.moderated. Answer: nothing.
]From: Russ Allbery <rra@stanford.edu>
]Date: 21 Sep 1998 19:53:43 -0700
]Subject: comp.lang.perl.moderated available via e-mail
]
]It is possible to subscribe to comp.lang.perl.moderated as a mailing list.
]To do so, send mail to majordomo@eyrie.org with "subscribe clpm" in the
]body. Majordomo will then send you instructions on how to confirm your
]subscription. This is provided as a general service for those people who
]cannot receive the newsgroup for whatever reason or who just prefer to
]receive messages via e-mail.
The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc. For subscription or unsubscription requests, send
the single line:
subscribe perl-users
or:
unsubscribe perl-users
to almanac@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.
The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq". The real FAQ, as it
appeared last in the newsgroup, can be retrieved with the request "send
perl-users FAQ". Due to their sizes, neither the Meta-FAQ nor the FAQ
are included in the digest.
The "mini-FAQ", which is an updated version of the Meta-FAQ, is
available by requesting "send perl-users mini-faq". It appears twice
weekly in the group, but is not distributed in the digest.
For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V8 Issue 4583
**************************************