[12771] in Perl-Users-Digest
Perl-Users Digest, Issue: 181 Volume: 9
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Jul 18 11:07:14 1999
Date: Sun, 18 Jul 1999 08:05:09 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Sun, 18 Jul 1999 Volume: 9 Number: 181
Today's topics:
Re: Anyone intrested in joining a group? <gellyfish@gellyfish.com>
Can a .html file be executable? <scientia@XXXtechnologist.com>
Re: Can a .html file be executable? <flavell@mail.cern.ch>
Re: Closing Web Browser Connection on Lengthy Processes <gellyfish@gellyfish.com>
Re: Closing Web Browser Connection on Lengthy Processes bane_dewitt@my-deja.com
Re: Closing Web Browser Connection on Lengthy Processes bane_dewitt@my-deja.com
Re: Closing Web Browser Connection on Lengthy Processes <flavell@mail.cern.ch>
Re: Closing Web Browser Connection on Lengthy Processes (Michel Dalle)
Re: Future of Perl <gellyfish@gellyfish.com>
Re: Future of Perl (Rich)
help! <tobiasha@algonet.se>
Re: help! (Michel Dalle)
Re: I can't find this one in the FAQ. <jscott@oro.net>
Is this right ? <factory@factory.co.kr>
Keeping competitors out <chris@netsoc.tcd.ie>
Re: Keeping competitors out (David Quinton)
Re: Keeping competitors out (Michel Dalle)
Looking for a free web hosting with perl <jriera@retemail.es>
Re: MS Access ODBC Truncates (Marcel Grunauer)
Re: newbie needs help! <gellyfish@gellyfish.com>
Re: newbie needs help! (Abigail)
Re: newbie needs help! (Michel Dalle)
Re: Perl probs! <gellyfish@gellyfish.com>
Re: Perl probs! <flavell@mail.cern.ch>
Seeking for a page maintainer for the Cetus Links <manfred.schneider@rhein-neckar.de>
Re: split() <tchrist@mox.perl.com>
String <marc.barieux@t-online.de>
Re: String (Michel Dalle)
Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 18 Jul 1999 10:27:44 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Anyone intrested in joining a group?
Message-Id: <7msa70$t0$1@gellyfish.btinternet.com>
On Sat, 17 Jul 1999 20:41:41 -0500 Robert Zamor wrote:
> So far there is no group name, and
> once we start to get going I hope to get a top-level domain.
W4y K3wl!!!! ! I think you should go for a .cgi TLD which would be just
like wicked man infact once you have got the go ahead from IANA and have
set up the nameservers I'll go for gellyfish.cgi cuz then 'vryone will
know that I'm a rocking CGI coder.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sun, 18 Jul 1999 14:41:00 -0700
From: Scientia <scientia@XXXtechnologist.com>
Subject: Can a .html file be executable?
Message-Id: <379249EC.66A1@XXXtechnologist.com>
Hello
for reasons that is would be impossible to explain here,
I should make a certain file.html executable:
I can't change its name to file.cgi .
Of course I could make a HTML redirection from such file
to a executable cgi file.
However I would like to know if it is possible somehow to make
it executable itself, although it has a .html extension
Thanks
Fabrizio
------------------------------
Date: Sun, 18 Jul 1999 15:54:59 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Can a .html file be executable?
Message-Id: <Pine.HPP.3.95a.990718154459.7013E-100000@hpplus03.cern.ch>
On Sun, 18 Jul 1999, Scientia wrote:
> for reasons that is would be impossible to explain here,
"impossible" indeed, since this is not a Perl language question. :-}
> I should make a certain file.html executable:
chmod +x file.html
Well, you didn't say what OS you use, so I had to guess.
> Of course I could make a HTML redirection from such file
> to a executable cgi file.
It was pretty obvious that this wasn't a Perl language question, but
this is the first indication you gave that this is a WWW question.
usenet is divided up into a lot of groups according to the relevance of
the discussions that take place there.
> However I would like to know if it is possible somehow to make
> it executable itself, although it has a .html extension
You might be confused about how to tell a web server what to do with it.
If so, you might get more-useful results by consulting the configuration
instructions for the web server that you use, and taking up any
remaining questions on the appropriate comp.infosystems.www.servers.*
group. On unix, the OS itself doesn't care about filename extensions:
they're used by the web server according to how you configure it.
If you're struggling with something from the evil empire, then you may
find you have more of a problem, but it's not one that Perl language
discussions could help you with.
good luck
------------------------------
Date: 18 Jul 1999 10:10:06 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Closing Web Browser Connection on Lengthy Processes
Message-Id: <7ms95u$ss$1@gellyfish.btinternet.com>
On Sun, 18 Jul 1999 00:01:12 GMT bane_dewitt@my-deja.com wrote:
> I wrote:
>
>> I have read the fork perldoc and the Boutell/Kew FAQs,
>> and wrote the following test code (below). This prints
>> "Hello World" to the browser, closes STDOUT, and attempts
>> to fork a process that waits 2 minutes and writes to a
>> file (to simulate a long-running process).
>>
>> The problem is, the browser remains connected to the app
>> for the whole 2 minutes, so obviously I'm not understanding
>> this close(STDOUT)/fork business very well.
>>
>> Would someone please tell me what I'm doing wrong?
>
> No takers?
This is Usenet not IRC - your message may not even be received by people
for more than a day ...
> I'm not asking to be spoon fed - I'm ready to do more work
> to learn the answer to this, I just don't know where to turn to next.
> Some FAQs come close to answering it, but the code that I try doesn't
> do what I think it's supposed to do. It looks like one just closes
> STDOUT and forks a new process, but that doesn't close the browser
> connection. Hm.
>
I would use something that does things in this order:
#!/usr/bin/perl -w
use CGI qw(:standard);
$| = 1;
if (my $pid = fork)
{
print header,start_html("Blah blah");
print h1('Away we go ...');
print end_html();
close STDIN;
close STDOUT;
}
else
{
close STDIN;
close STDOUT;
for (1 ... 100000 )
{
sleep 1;
}
}
I know this *does* work.
> If it's off topic, would someone please slap me with a big fish
I might do it anyway for impatience and your apparent belief that you have
a right to have your question answered.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sun, 18 Jul 1999 12:19:34 GMT
From: bane_dewitt@my-deja.com
Subject: Re: Closing Web Browser Connection on Lengthy Processes
Message-Id: <7msgok$1pe$1@nnrp1.deja.com>
In article <slrn7p2tc3.c9j.abigail@alexandra.delanet.com>,
abigail@delanet.com wrote:
> *SLAP WITH A BIG FISH*
Nice backhand, good followthrough.
> Your program has no connection with the browser.
> Your server has. Your server is on the www.
> That should be enough information to figure out where to ask.
Thanks, I'll try over there. Hopefully they won't bounce me back here
for asking a perl fork question.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Sun, 18 Jul 1999 12:42:14 GMT
From: bane_dewitt@my-deja.com
Subject: Re: Closing Web Browser Connection on Lengthy Processes
Message-Id: <7msi36$23t$1@nnrp1.deja.com>
In article <7ms95u$ss$1@gellyfish.btinternet.com>,
Jonathan Stowe <gellyfish@gellyfish.com> wrote:
> This is Usenet not IRC - your message may not even be
> received by people for more than a day ...
Sorry to have offended - I've been reading this group for a while now
before posting (trying to do the right thing), and the average response
time seems to be under a few hours.
> I would use something that does things in this order:
[snip code]
This does not seem to yield the intended results on my system (UNIX
System V Release 4.0, perl version 5.005_02 built for sun4-solaris). It
prints the "Away we go" text, but the connection persists, does not
close.
Maybe exec() is what I need instead of forking. I'll try that.
> > If it's off topic, would someone please slap me with
> > a big fish
>
> I might do it anyway for impatience and your apparent
> belief that you have a right to have your question answered.
I'm not sure how you managed to infer that, but if it would make you
feel better, slap away! That's one of the things I like about usenet.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: Sun, 18 Jul 1999 15:09:57 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Closing Web Browser Connection on Lengthy Processes
Message-Id: <Pine.HPP.3.95a.990718150643.7013D-100000@hpplus03.cern.ch>
On Sun, 18 Jul 1999 bane_dewitt@my-deja.com wrote:
[snip]
I think you may be looking for Nick New's CGI FAQ:
http://www.stack.nl/htmlhelp/faq/cgifaq.3.html#8
How to achieve that in Perl might be a Perl language question, but
how to organise it in a CGI environment is certainly a CGI-related
question. Check the posting instructions for the automoderator bot
if you haven't posted to c.i.w.a.cgi before.
good luck
------------------------------
Date: Sun, 18 Jul 1999 13:55:59 GMT
From: michel.dalle@usa.net (Michel Dalle)
Subject: Re: Closing Web Browser Connection on Lengthy Processes
Message-Id: <7msmbn$h4c$1@xenon.inbe.net>
In article <7msi36$23t$1@nnrp1.deja.com>, bane_dewitt@my-deja.com wrote:
[snip]
>This does not seem to yield the intended results on my system (UNIX
>System V Release 4.0, perl version 5.005_02 built for sun4-solaris). It
>prints the "Away we go" text, but the connection persists, does not
>close.
How do you check this ? By looking at the 'Stop' button of your browser,
or because it doesn't tell you 'Done' in the status line ?
Maybe you simply have your Keep-alive set in HTTP, and there's
nothing wrong with the script itself (as Abigail 'suggested').
Michel.
------------------------------
Date: 18 Jul 1999 09:52:31 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Future of Perl
Message-Id: <7ms84v$sb$1@gellyfish.btinternet.com>
On Sun, 18 Jul 1999 02:43:14 GMT Rich wrote:
> On Sat, 17 Jul 1999 00:30:31 GMT, Jeffrey <Jeffrey@ix.netcom.com> wrote:
>
>>As for my original question, it was spurred by a comment in a CGI book
>>that Java would take over and Perl would become a legacy language.
>>Someone said the same thing in a message when I did a search on Deja
>>News. So don't act like my question was so fucking stupid, bitch.
>
> I *always* check the USENET posting history of people who
> I am considering for employment. I'm certainly not alone in this
> practice.
>
> Now, do you REALLY think that you have substantially improved
> the odds of getting a real job in the future, by a) showing that
> you are incapable of acting in a mature fashion, and b) showing
> that you can be swayed by the random comments of people whose
> expertise you obviously have no means of evaluating?
>
Except he perhaps betrayed some knowledge of this possibility by setting
his X-No-Archive: header. Of course this doesnt mean he can get away
with it totally if the entire post is quoted in full - or the fact that
some usenet archives dont respect that header, or the fact that the post
may stay on the disk here until I can no longer afford the disk space and
of course with the price of diskspace now I dont think that is going
to be anytime real soon now.
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sun, 18 Jul 1999 14:58:27 GMT
From: spamhater@ucesucks.nouce.com (Rich)
Subject: Re: Future of Perl
Message-Id: <slrn7p3qr3.dms.spamhater@zippy.aa2ys.ampr.org>
On 18 Jul 1999 09:52:31 -0000, Jonathan Stowe <gellyfish@gellyfish.com> wrote:
>Except he perhaps betrayed some knowledge of this possibility by setting
>his X-No-Archive: header. Of course this doesnt mean he can get away
>with it totally if the entire post is quoted in full - or the fact that
>some usenet archives dont respect that header, or the fact that the post
>may stay on the disk here until I can no longer afford the disk space and
>of course with the price of diskspace now I dont think that is going
>to be anytime real soon now.
Personally, I've found X-No-Archive to be relatively useless. Yes,
the major USENET archives tend to honor it. On the other hand,
the popular groups are almost invariably also gatewayed to bulk-mailing
lists, where the tag is ignored. So, if you don't find it using
Deja or Altavista, then you'll almost always find it on Yahoo
or one of the bot engines. C.l.p is no different, in this
respect. ( Not that I don't use X-N-A myself, in the vain hope
that I can maintain a seperation between home and work. :-)
I also should have mentioned that if I don't find anything on the
net about a particular candidate, then I ask them why, since a
developer who doesn't make use of the net these days is, shall we
say, of questionable abilities to make use of the resources available
to them. Privacy is certainly a legitimate concern, in which case I
try to evaluate how well they actually use the net, instead of proclaiming
their greatness there. :-)
- Rich
------------------------------
Date: Sun, 18 Jul 1999 12:28:55 +0200
From: Tobias <tobiasha@algonet.se>
Subject: help!
Message-Id: <3791AC67.3DAF5544@home.se>
Hi..
recently I download a perl script called news.pl
it was meant to update html pages without logging on.
my problem is I dont know how to make it look the way I want,
where to place my html text in the news.pl so the update fits the actual
html file. I know this is pretty simple but I am a retard when it comes
to perl :)
anyone ?
//sid
------------------------------
Date: Sun, 18 Jul 1999 13:58:39 GMT
From: michel.dalle@usa.net (Michel Dalle)
Subject: Re: help!
Message-Id: <7msmgn$h4c$2@xenon.inbe.net>
In article <3791AC67.3DAF5544@home.se>, Tobias <tobiasha@algonet.se> wrote:
>Hi..
>
>recently I download a perl script called news.pl
>it was meant to update html pages without logging on.
>my problem is I dont know how to make it look the way I want,
>where to place my html text in the news.pl so the update fits the actual
>
>html file. I know this is pretty simple but I am a retard when it comes
>to perl :)
>anyone ?
Well, have you tried contacting the author of 'news.pl' ?
I'm sure if it's a worthwhile piece of code, the author will be indicated
in the script itself. Or there may even be some documentation for that
script somewhere... If not, try using another script :-)
Michel.
------------------------------
Date: Sat, 17 Jul 1999 10:48:51 -0700
From: oronet Tech - Joshua Scott <jscott@oro.net>
Subject: Re: I can't find this one in the FAQ.
Message-Id: <3790C203.EF2FE4FF@oro.net>
Ronald J Kimball wrote:
>
> oronet Tech - Joshua Scott <jscott@oro.net> wrote:
>
> > Here is my code. Simple as it is, I still get a really screwy error. I
> > read the perldoc and I find no reference to thas error in a FAQ.
> > Anybody got any ideas?
>
> > print $query->redirect('http://www.oro.net');}
>
> > Status: 302 Found
> > Uri: http://www.oro.net
> > Location: http://www.oro.net
> > Content-type: text/html
>
> What error? That's the expected output!
>
I am sorry I forgot to tell you that the status message apears in the
browser window. I guess I thought that the browser would go to the
redirected page.
=============================================================
Josh Scott 272.0799
oronet Technician http://www.oro.net/~jscott
------------------------------
Date: Mon, 19 Jul 1999 00:03:59 +0900
From: "Yeong Mo/Director Hana co." <factory@factory.co.kr>
Subject: Is this right ?
Message-Id: <7mspts$n8f$1@news1.kornet.net>
Is this right ?
Here is a data file as following for example;
aaaa&&category1&&fff.gif&&filename1&&dddd1
abab&&category2&&ggg.gif&&filename2&&ffgg2
bdbd&&category1&&89f.gif&&filename8&&ghjj1
oooo&&category2&&oo7.gif&&filename5&&ghhy7
.....and much more.........................
I want to read this data file, and find out which line matched, and print it
as a html file.
Let's think $logincat is categorys1 and $loginpagename is filename8.
Then, it should be printed the following at html page.
<html><head><title>aaaa</title></head>
category1-89f.gif-filename8-ghjj1
</body></html>
I am going to use the following code, but meets error.
Please, direct me where is wrong.
#code start ----------------------------------------------
open(FILE, "data.txt") || die "I can't re-open $data_dir/data.txt file for
deleting\n";
flock (FILE, 2) or die "can't lock index file for append\n";
chop;
for ($a = 0; $a <= $sizelines; $a++)
{
$_ = $lines[$a];
$w = $_;
$w =~ s/\cM//g;
$w =~ s/\n//g;
($maintitlev, $categorysv, $simage1v, $filename, $ijava0v)=
split(/&&/, $line);
if($logincat eq "$categorysv" && $loginpagename eq "$filename" )
{
while(<FILE>)
{
chop;
@datafile = split(/\n/);
foreach $line (@datafile)
{
&build_edit_form($line);
}
}
}
}
close(FILE);
#---------------------------------------------------------------------------
----------
sub build_edit_form($line) {
local ($line) = @_;
local($maintitlev, $categorysv, $simage1v, $filename, $ijava0v)=
split(/&&/, $line);
print "Content-type: text/html\n\n";
print "<html><head><title>$maintitle</title></head>\n";
print "$categorysv-$simage1v-$filename-$ijava0v\n";
print "</body></html>
}
------------------------------
Date: Sun, 18 Jul 1999 13:41:07 +0100
From: Chris <chris@netsoc.tcd.ie>
Subject: Keeping competitors out
Message-Id: <Pine.LNX.3.96.990718133350.8738C-100000@apollo.netsoc.tcd.ie>
At work, I've recently been asked to write a Perl function which will
prevent our competitors from logging on to one of our web pages
(which would be done via a CGI script).
Someone suggested checking the IP address of people who log onto the site
with a list of our competitors' IP addresses, and determining access
legibility that way.
How would I do this?
Any ideas as to other ways I could tackle this problem?
Thanks,
Chris
------------------------------
Date: Sun, 18 Jul 1999 13:26:45 GMT
From: davidq@NOSPAMpost.almac.co.uk (David Quinton)
Subject: Re: Keeping competitors out
Message-Id: <3791d5cd.164696472@news.almac.co.uk>
On Sun, 18 Jul 1999 13:41:07 +0100, Chris <chris@netsoc.tcd.ie> wrote:
>At work, I've recently been asked to write a Perl function which will
>prevent our competitors from logging on to one of our web pages
>(which would be done via a CGI script).
Probably wouldn't be worth the effort because:-
a) Dynamic IP addresses
b) Homeworkers
c) Silly idea!
--
I'm currently reading:
<http://www.amazon.co.uk/exec/obidos/ASIN/0436201305/bizorginternetse>
FREE Personal Numbers: 0709 119 1500
<http://www.ThisBritain.com/personalnos.htm>
------------------------------
Date: Sun, 18 Jul 1999 14:06:46 GMT
From: michel.dalle@usa.net (Michel Dalle)
Subject: Re: Keeping competitors out
Message-Id: <7msmvt$h4c$3@xenon.inbe.net>
In article <Pine.LNX.3.96.990718133350.8738C-100000@apollo.netsoc.tcd.ie>, Chris <chris@netsoc.tcd.ie> wrote:
[snip]
>How would I do this?
>Any ideas as to other ways I could tackle this problem?
Seems pretty difficult, to keep only a few people out. Besides, what's to stop
people from using another connection to check out your website, if they're
determined ? If you do have confidential information, don't put it on the web
at all, or place it in a restricted area and let people sign a non-disclosure
agreement before giving out the password...
For what it's worth,
Michel.
P.S.: nice site, BTW. I liked the part about the blue bathrobe... :-)
------------------------------
Date: Sun, 18 Jul 1999 16:19:37 +0200
From: "Juan Riera" <jriera@retemail.es>
Subject: Looking for a free web hosting with perl
Message-Id: <7msnrl$75e1@SGI3651ef0>
Hello,
Does anybody knows about any free web site hosting that admits perl cgi
programming? I would like to test a home site - home developped.
Thanks,
Juan
------------------------------
Date: Sun, 18 Jul 1999 14:34:27 GMT
From: marcel.grunauer@lovely.net (Marcel Grunauer)
Subject: Re: MS Access ODBC Truncates
Message-Id: <379ae4f7.1689459@enews.newsguy.com>
On Sat, 17 Jul 1999 16:10:57 -0500, Matt Turner <matt@mail.tca.net>
wrote:
>I am having a problem getting information out of a memo type field in an
>access database. If the memo field is only 80 characters long, my perl
>script (using DBI, DBD-ODBC, activestate, WinNt4) returns the column
>fine. But if the memo field is 81 or more characters long I get the
>following error:
>
>DBD::ODBC::st fetchrow_array failed: [Microsoft][ODBC Microsoft Access
>97 Driver]Data Truncated (SQL-01004)(DBD: st_fetch/SQLFetch (long
>truncated) err=1) at test.pl line 12
Been there, done that. You'll get the same result if you try to import
directly into an Access database via the Access application. Some MS
idiocy going on, I'm sure.
Anyway.
You've got to tell DBI to use a certain data type when dealing with
memo fields.
use DBI qw/SQL_LONGVARCHAR/;
$sth = $dbh->prepare(q{INSERT INTO TableName (memofieldname) VALUES
(?)}) || die $dbh->errstr;
$sth->bind_param( 1, $a_long_string, { TYPE => SQL_LONGVARCHAR });
$sth->execute || $dbh->errstr;
}
That should do it.
Marcel
--
perl -e 'print unpack(q$u$,q$82G5S="!!;F]T:&5R(%!E<FP@2&%C:V5R$)'
------------------------------
Date: 18 Jul 1999 10:29:41 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: newbie needs help!
Message-Id: <7msaal$t3$1@gellyfish.btinternet.com>
On 18 Jul 1999 04:17:59 -0400 Uri Guttman wrote:
>
> i know the idiom. i was just trying to be nice and simple for the
> newbie. and i get attacked for it! i will never be nice again to anyone
> here. this is such a nasty group. :-(
>
Actually I was beginning to wonder if the real Uri had been kidnapped
by aliens ...
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: 18 Jul 1999 05:12:19 -0500
From: abigail@delanet.com (Abigail)
Subject: Re: newbie needs help!
Message-Id: <slrn7p3a33.c9j.abigail@alexandra.delanet.com>
Larry Rosler (lr@hpl.hp.com) wrote on MMCXLVII September MCMXCIII in
<URL:news:MPG.11fb098df215fb42989cf1@nntp.hpl.hp.com>:
,,
,, Ook. Bloody bareword misprint there. Of course, in line with my
,, environmentally-correct goal of conserving the world's limited supply of
,,
,, semicolons, I would write it thus:
,,
,, chomp(@array = <CONF>);
You do realize that one hardly needs semicolons in Perl, don't you?
That one semicolon there isn't necessary:
{chomp(@array = <CONF>)}
Abigail
--
perl -MTime::JulianDay -lwe'@r=reverse(M=>(0)x99=>CM=>(0)x399=>D=>(0)x99=>CD=>(
0)x299=>C=>(0)x9=>XC=>(0)x39=>L=>(0)x9=>XL=>(0)x29=>X=>IX=>0=>0=>0=>V=>IV=>0=>0
=>I=>$r=-2449231+gm_julian_day+time);do{until($r<$#r){$_.=$r[$#r];$r-=$#r}for(;
!$r[--$#r];){}}while$r;$,="\x20";print+$_=>September=>MCMXCIII=>()'
-----------== Posted via Newsfeeds.Com, Uncensored Usenet News ==----------
http://www.newsfeeds.com The Largest Usenet Servers in the World!
------== Over 73,000 Newsgroups - Including Dedicated Binaries Servers ==-----
------------------------------
Date: Sun, 18 Jul 1999 10:24:18 GMT
From: michel.dalle@usa.net (Michel Dalle)
Subject: Re: newbie needs help!
Message-Id: <7ms9ur$7gg$2@xenon.inbe.net>
In article <x7673iid6w.fsf@home.sysarch.com>, Uri Guttman <uri@sysarch.com> wrote:
>>>>>> "LR" == Larry Rosler <lr@hpl.hp.com> writes:
> LR> Ook. Bloody bareword misprint there. Of course, in line with my
> LR> environmentally-correct goal of conserving the world's limited
> LR> supply of semicolons, I would write it thus:
>
> LR> chomp(@array = <CONF>);
>
>i know the idiom. i was just trying to be nice and simple for the
>newbie. and i get attacked for it! i will never be nice again to anyone
>here. this is such a nasty group. :-(
>
>uri
Don't worry about it. I think Larry was trying out his Abigail imitation
again :-)
Michel.
------------------------------
Date: 18 Jul 1999 10:03:08 -0000
From: Jonathan Stowe <gellyfish@gellyfish.com>
Subject: Re: Perl probs!
Message-Id: <7ms8os$sh$1@gellyfish.btinternet.com>
On Sat, 17 Jul 1999 14:31:53 -0400 Jim Janovich wrote:
> I am running Redhat 5.2 with Perl 5.004. Have a few cgis setup....whenever
> I try to access the cgi or .pl from a webpage.....it tries to d/l the .pl
> file.....whats the prob?
You should read the documentation for the Webserver which should be already
on your machine. If you have further problems with this issue in particular
they should be addressed to the newsgroup comp.infosystems.www.servers.unix
/J\
--
Jonathan Stowe <jns@gellyfish.com>
Some of your questions answered:
<URL:http://www.btinternet.com/~gellyfish/resources/wwwfaq.htm>
Hastings: <URL:http://www.newhoo.com/Regional/UK/England/East_Sussex/Hastings>
------------------------------
Date: Sun, 18 Jul 1999 14:47:11 +0200
From: "Alan J. Flavell" <flavell@mail.cern.ch>
Subject: Re: Perl probs!
Message-Id: <Pine.HPP.3.95a.990718143533.7013C-100000@hpplus03.cern.ch>
On 18 Jul 1999, Jonathan Stowe wrote:
> On Sat, 17 Jul 1999 14:31:53 -0400 Jim Janovich wrote:
> > I am running Redhat 5.2 with Perl 5.004. Have a few cgis setup....whenever
> > I try to access the cgi or .pl from a webpage.....it tries to d/l the .pl
> > file.....whats the prob?
Gosh, I just decided not to answer the very same question when I saw it
posted separately to the unix servers group, calling for an email reply.
> You should read the documentation for the Webserver which should be already
> on your machine.
I think the questioner needs a bit more understanding of HTTP content
type before the documentation could tell them anything that they could
understand.
> If you have further problems with this issue in particular
> they should be addressed to the newsgroup comp.infosystems.www.servers.unix
With respect, I don't think so; the content-type returned by a CGI
process is determined primarily by the CGI process, not by the server
configuration. I'd say they ought to be on c.i.w.a.cgi, after
consulting the relevant FAQs. Actually, this one would do fine:
http://www.stack.nl/htmlhelp/faq/html/media.html#garbled-media
if read creatively. But working up from a simple CGI tutorial might be
the best way of understanding the concepts involved.
However, as the questioner asked for email, one might suppose they don't
read FAQs. Too bad, they'll never see the advice to check on
news.announce.newusers for helpful information about the netiquette.
The questioner could also benefit greatly from the available advice on
determining which group(s) to post to, how to use crossposting when it's
appropriate, and how to compose a meaningful subject line.
------------------------------
Date: Sun, 18 Jul 1999 14:23:01 +0200
From: "Manfred Schneider" <manfred.schneider@rhein-neckar.de>
Subject: Seeking for a page maintainer for the Cetus Links
Message-Id: <7msgv5$oaj$1@news-ma.rhein-neckar.de>
Hi,
the Cetus Links ( http://www.cetus-links.org/ ) are a collection of
pointers to various information about Object-Orientation and
Component-Orientation.
The web site contains 15,000+ links and 60+ page. During '98 the site
was visited more than 500,000 times. The collection is developed and
maintained by a team of several people from different countries
(please have a look at http://www.cetus-links.org/team.html ).
To enhance and to improve the site we are currently looking for someone
who would like to take over the page
Perl http://www.cetus-links.org/oo_perl.html
If you are interested to join the Cetus Team and to maintain and
enhance this page for a longer period of time please let me know.
The Cetus Team welcomes your help and support very much.
Cheers, Manfred
+---------------+------------------------------------------------------+
| Cetus Links | Thousands of Links on Objects & Components |
+---------------+---------------------+----------------+---------------+
| Central site | www.cetus-links.org | 65 pages about | 17 mirrors in |
| German mirror | www.cetus-links.de | OO & CBD | 14 countries |
+---------------+---------------------+----------------+---------------+
------------------------------
Date: 18 Jul 1999 08:00:18 -0700
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: split()
Message-Id: <3791ddf2@cs.colorado.edu>
[courtesy cc of this posting mailed to cited author]
In comp.lang.perl.misc,
abigail@delanet.com writes:
:Well, that's related to the old question, "if I want to fence a kilometer,
:and have a fencing pole every metre, how many fencing poles do I have?".
It's much more interesting to fence a square mile with a pole at every
yard of its perimeter. Or to put a nested internal fence around every
acre within that square mile -- that one's even more fun. :-)
--tom
--
"The Earth is degenerating these days. Bribery and corruption abound. Children
no longer mind their parents, every man wants to write a book, and it is
evident that the end of the world is fast approaching."
- Assyrian Stone Tablet, c.2800BC
------------------------------
Date: Sun, 18 Jul 1999 14:21:12 +0200
From: "Marc" <marc.barieux@t-online.de>
Subject: String
Message-Id: <7msgr1$nb0$1@news01.btx.dtag.de>
Hi,
I'd like to know how I can extract lines from a string in Perl... I'm new to
this language and have no ideas how to do that.
Thanks
Marc
------------------------------
Date: Sun, 18 Jul 1999 14:12:41 GMT
From: michel.dalle@usa.net (Michel Dalle)
Subject: Re: String
Message-Id: <7msnb0$h4c$4@xenon.inbe.net>
In article <7msgr1$nb0$1@news01.btx.dtag.de>, "Marc" <marc.barieux@t-online.de> wrote:
>Hi,
>I'd like to know how I can extract lines from a string in Perl... I'm new to
>this language and have no ideas how to do that.
Presuming $lines contain several lines, you can use 'split' to split it :
@lines = split("\n",$lines);
But usually, you would open a file and handle it line by line, like :
open(FILE,"<$file") || die "Can't open file $file : $!";
while (<FILE>) {
# $_ contains the current line, so do something with it...
}
close(FILE);
Have some fun, read the manual,
Michel.
------------------------------
Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 1 Jul 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.
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 V9 Issue 181
*************************************