[12378] in Perl-Users-Digest
Perl-Users Digest, Issue: 5978 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Sun Jun 13 15:07:22 1999
Date: Sun, 13 Jun 99 12:00:16 -0700
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, 13 Jun 1999 Volume: 8 Number: 5978
Today's topics:
Re: Afraid to ask about Y2K! (I R A Aggie)
DIFF BETWEEN PERL & CGI dharmin98@my-deja.com
Re: disalowing words (I R A Aggie)
Re: disalowing words (Ilya Zakharevich)
Re: Does Perl have a future? <bradclawsie@my-deja.com>
Re: Does Perl have a future? <rra@stanford.edu>
Far shorter solution! <bradclawsie@my-deja.com>
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: 13 Jun 1999 17:03:32 GMT
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: Afraid to ask about Y2K!
Message-Id: <slrn7m7p9e.eeu.fl_aggie@thepentagon.com>
On Sat, 12 Jun 1999 04:58:01 GMT, finsol@ts.co.nz <finsol@ts.co.nz>, in
<7jspcn$2c4$1@nnrp1.deja.com> wrote:
+ persevered although I have endured a lot stupid, illogical, arrogant,
^^^^^^ ^^^^^^^^^ ^^^^^^^^
+ patronising and abusive responses.
^^^^^^^^^^^ ^^^^^^^
+ realise you don't know". Some of these Perl coders have a lot to learn -
+ perhaps the hard way. Most of them only know one computer language and
+ only one computing environment - and they think they know it all!
Yes, you seem to know a lot about "stupid, illogical, arrogant,
patronising and abusive responses".
James
------------------------------
Date: Sun, 13 Jun 1999 17:31:37 GMT
From: dharmin98@my-deja.com
Subject: DIFF BETWEEN PERL & CGI
Message-Id: <7k0ptp$4ae$1@nnrp1.deja.com>
Hi, Could any one please tell me whats the difference between Perl &
CGI and where/how its used. Is it difficuilt to learn with no
experience in programming. what software does it use to write the
scripts.
Thanks
Dharmin
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: 13 Jun 1999 17:16:50 GMT
From: fl_aggie@thepentagon.com (I R A Aggie)
Subject: Re: disalowing words
Message-Id: <slrn7m7q2b.eeu.fl_aggie@thepentagon.com>
On 12 Jun 1999 12:41:26 GMT, Twarren10 <twarren10@aol.com>, in
<19990612084126.22862.00000715@ng-fu1.aol.com> wrote:
+ >
+ >if ($message =~ /any|naughty|word/) {
^^ you missed the /i to make it
case insensitive...
+ > tell($mom);
+ >}
+ That was BEAUTIFUL, thank you my friend!
Unfortunately, this will only catch the simple stuff. For the
purposes of demonstration, allow 'word' to be a naughty word.
There's word and its capitalization permutations (which the /i will
catch), but then you'll see w.o.r.d. and W O R D and even w0rd, or
maybe even
W
o
r
d
Your work, while lessened, isn't finished...
James
------------------------------
Date: 13 Jun 1999 18:57:35 GMT
From: ilya@math.ohio-state.edu (Ilya Zakharevich)
Subject: Re: disalowing words
Message-Id: <7k0uuv$9fd$1@mathserv.mps.ohio-state.edu>
[A complimentary Cc of this posting was sent to Larry Rosler
<lr@hpl.hp.com>],
who wrote in article <MPG.11cd6656107e96d3989bd7@nntp.hpl.hp.com>:
> > > FAQ1 => sub { $line =~ /$_/ and ++$matches for @regexes },
> >
> > Why do not you shortcut?
>
> If you mean why not break out of the loop as soon as a match is found,
> it is because there may be several matches in a single line of data (as
> in my test sample) and I want to report them all (i.e., print each one,
> in a real program).
Since your different snippets count different things, I see no point
in this.
Ilya
------------------------------
Date: Sun, 13 Jun 1999 16:44:37 GMT
From: Brad Clawsie <bradclawsie@my-deja.com>
Subject: Re: Does Perl have a future?
Message-Id: <7k0n5k$3fb$1@nnrp1.deja.com>
> I am wondering if JavaBeans and
> servlets are really going to ursurp Perl/CGI on UNIX??
>
> Of course, Sun claims that Perl/CGI is dead and that JavaBeans is the
> future
The number pretty much speak for themselves - perl is overwhlmingly
popular as a tool for CGI processing.
While Servelets and Beans may be interesting technologies, I haven't
seen a manifestation in terms of actual pages using them.
Not only does perl now have "incumbent" status with regards to CGI
programming (i.e., the language most will choose simply because most
others have already chose it), but it really does allow far more rapid
development of CGI scripts.
Sun is in a sticky situation with Java. An early obvious application
space - applets - has dried up due to bugginess and browser stability.
Soon after, Sun needed to develop new niche markets that Sun could
dominate - this is what expert marketing groups do - they create markets
and needs. The servelet market is one such synthesized market.
I like Java - its a great language that has a lot of structure to help
modularize code, but I have to say to Sun - you picked the wrong fight
when it comes to CGI. Perl is entrenched for a erason - its simply the
best tool for the job.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
Date: 13 Jun 1999 10:58:51 -0700
From: Russ Allbery <rra@stanford.edu>
Subject: Re: Does Perl have a future?
Message-Id: <yl7lp8x9r8.fsf@windlord.stanford.edu>
Christian Ahkman <tchristian7@yahoo.com> writes:
> Perl obviously "has a future" for many tasks, so let me be more
> specific. Does perl have a future on the web server?
Ten years down the road, after everyone has switched over to HyperJava++
to render their XML-enhanced dynamic web content, if you actually look on
the web server, you'll find the same old, unassuming little Perl script
someone wrote in an afternoon happily post-processing the server logs and
generating statistics that justify the salaries for the three hundred
HyperJava++ developers. Despite the fact that no one has touched it in
five years.
--
#!/usr/bin/perl -- Russ Allbery, Just Another Perl Hacker
$^=q;@!>~|{>krw>yn{u<$$<[~||<Juukn{=,<S~|}<Jwx}qn{<Yn{u<Qjltn{ > 0gFzD gD,
00Fz, 0,,( 0hF 0g)F/=, 0> "L$/GEIFewe{,$/ 0C$~> "@=,m,|,(e 0.), 01,pnn,y{
rw} >;,$0=q,$,,($_=$^)=~y,$/ C-~><@=\n\r,-~$:-u/ #y,d,s,(\$.),$1,gee,print
------------------------------
Date: Sun, 13 Jun 1999 16:55:03 GMT
From: Brad Clawsie <bradclawsie@my-deja.com>
Subject: Far shorter solution!
Message-Id: <7k0np5$3kp$1@nnrp1.deja.com>
Most of the typing can be avoided with the -M file test.
#!/usr/local/bin/perl -w
opendir(DIR, ".");
my @sorted_files = sort { -M $a <=> -M $b } readdir(DIR);
closedir(DIR);
the last line can probably be omitted too, if you're a brevity freak.
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.
------------------------------
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 5978
**************************************