[10893] in Perl-Users-Digest
Perl-Users Digest, Issue: 4494 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Thu Dec 24 21:07:19 1998
Date: Thu, 24 Dec 98 18:00:17 -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 Thu, 24 Dec 1998 Volume: 8 Number: 4494
Today's topics:
Re: a nicer way? (Andre L.)
Re: a nicer way? <tchrist@mox.perl.com>
Re: ActivePerl perlscript and IIS tenthousand@geocities.com
Re: Ambiguous use of values (M.J.T. Guy)
attach html file to email <bwb@dowebpages.com>
CGI / Shopping Cart Script Help?? survey@cryogen.com
challenge: 99 bottles of perl (was Re: The quine page) <uri@ibnets.com>
Re: challenge: 99 bottles of perl (was Re: The quine pa (Larry Rosler)
Error problem: premature end of script headers? (John )
Re: Error problem: premature end of script headers? <due@murray.fordham.edu>
Re: Error problem: premature end of script headers? (John )
Forum / Web board <ianf@mediaone.net>
Re: Need to output a file starting at a specified line (Tad McClellan)
Re: Perl 5.005_002 and berkeley db problems <ltl@rgsun5.viasystems.com>
Re: Perl for win32 user friendly? <due@murray.fordham.edu>
Re: Perl script to help in downloading web books/faqs (brian d foy)
Re: Problem with Text files with my Program. (Larry Rosler)
Re: Problem with Text files with my Program. <rick.delaney@home.com>
Re: Problem with Text files with my Program. (Tad McClellan)
Re: Problem with Text files with my Program. <niall_wallace@yahoo.com>
Re: Regex question - removing HTML tags.... (Abigail)
Re: Retrospective on comp.lang.perl.moderated? <jll@skynet.be>
Re: Sendmail (Mike Schechter)
Re: Using Exec CGI in ASP tenthousand@geocities.com
Re: Why Is Perl not a Language? (David H. Adler)
Re: Why Is Perl not a Language? (Dave)
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Thu, 24 Dec 1998 15:14:53 -0500
From: alecler@cam.org (Andre L.)
Subject: Re: a nicer way?
Message-Id: <alecler-2412981514530001@dialup-552.hip.cam.org>
In article <slrn783lfh.59m.jcostom@madcow.jasons.org>,
jcostom@madcow.jasons.org (Jason Costomiris) wrote:
> On 23 Dec 1998 17:07:34 GMT, Tom Christiansen <tchrist@mox.perl.com> wrote:
> : use CGI qw(:standard);
> : $id = param("id");
> : $name = param("name");
> : $info = param("info");
>
> That works fine && dandy, but suppose you're an OOP kind of guy...
>
> use CGI qw(:standard);
> my $query = new CGI;
> my $id = $query->param("id");
> my $name = $query->param("name");
> my $info = $query->param("info");
>
> Is there any particular advantage (aside from fewer keystrokes) to
> what you wrote, vs. what I have above?
Fewer keystrokes are an advantage, no? The module allows this direct use
of the CGI methods. Those calls act on a CGI object that is created
implicitely. This is practical if you know you'll need only one CGI object
in a program.
Andre
------------------------------
Date: 25 Dec 1998 00:22:06 GMT
From: Tom Christiansen <tchrist@mox.perl.com>
Subject: Re: a nicer way?
Message-Id: <75ulre$8hs$1@csnews.cs.colorado.edu>
[courtesy cc of this posting sent to cited author via email]
You seem to have stealth-CC'd me. That's not very nice.
In comp.lang.perl.misc, jcostom@madcow.jasons.org (Jason Costomiris) writes:
^^^^^^^^^^
I've heard about you people. See perltoot.
:That works fine && dandy, but suppose you're an OOP kind of guy...
:
:use CGI qw(:standard);
:my $query = new CGI;
:my $id = $query->param("id");
:my $name = $query->param("name");
:my $info = $query->param("info");
Don't be a nut. The OO way is completely ridiculous for 99% of the
CGI.pm applications. And OO in general is silly for a good bit of what
it gets used for.
Be direct and to the point. Eschew unnecessary obfuscations. Don't hide
behind too many layers of abstraction.
--tom
--
The software required `Windows 95 or better', so I installed Linux.
------------------------------
Date: Thu, 24 Dec 1998 22:32:07 GMT
From: tenthousand@geocities.com
Subject: Re: ActivePerl perlscript and IIS
Message-Id: <75ufd8$c9g$1@nnrp1.dejanews.com>
In article <366BAA08.F5BF687@teamamiga.org_NOSPAM>,
matt@teamamiga.org wrote:
> brian.parks@stn.siemens.com wrote:
> >
> > I just installed ActivePerl (build 507) and want to write some ASP pages
using
> > PerlScript rather than VBScript.
> > ActivePerl installed OK, and I can run standard perl cgi scripts, but I'm
> > having problems with the following perlscript (ASP):
>
> [snip]
>
> > My browser returns the following error message:
> > ---------------------------------------------------------------------------
> > $Response->writeblock(0); $Response->write("Hello World"); error '80004005'
> >
> > Can't call method "writeblock" on an undefined value.
>
> You have an installation problem. Try re-installing ActivePerl. If that
> doesn't work, reinstall IIS.
The company I work at has the same problem. I've tried to instal new builds
of ActivePerl several time, but we always need to re-install build 502.
However, on another server, we started with build 505 and it worked
perfectly...
It is a bit of a problem, because of course we would like to keep our server
synchronised...
Also, when i recently tried to install build 507, the server said when I
started that "because several programs were using this or that, the
installing would probably go not as we liked... We've never had this before,
and actually some part of the message made no sense...
BVH
BTW a tip: Index Server runs havoc on your server... at our place it removed
every "default file" type (.shtml etc) except the ones that come standard with
IIS... thank you micro$oft!
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 24 Dec 1998 20:59:39 GMT
From: mjtg@cus.cam.ac.uk (M.J.T. Guy)
Subject: Re: Ambiguous use of values
Message-Id: <75u9vr$bi6$1@pegasus.csx.cam.ac.uk>
Bart Lateur <bart.lateur@skynet.be> wrote:
>Somebody please confirm this:
>
>In newer versions of Perl, both "=>" and the unary minus sign are
>supposed to quote the word (left of "=>" or following "-"). So, this
>behaviour, and I'm sure you're right about it, should never happen in
>future Perl ports.
Nearly, but not quite right. A word to the left of => is *always*
quoted in current Perls, so this gives no error:
perl -Mstrict -we 'my $x=print=>'
(On older Perls, there was a bug that the word was quoted, but you got a
warning if it was a Perl keyword:
perl5.004_04 -Mstrict -we 'my $x=print=>'
Ambiguous use of print => resolved to "print" => at -e line 1.
)
A word to the right of '-' isn't always quoted - the usual Perl rule
applies that a bareword is assumed to be quoted if Perl doesn't know
better, i.e. if the word isn't a Perl keyword, isn't the name of a
predeclared subroutine, ... .
But that rule has two twists to it: (a) with -w, Perl will generate a
warning (b) with 'use strict', that is a compile time error:
perl -Mstrict -we 'my $x=~joke'
Bareword "joke" not allowed while "strict subs" in use at -e line 1.
Unquoted string "joke" may clash with future reserved word at -e line 1.
Execution of -e aborted due to compilation errors.
What is special about unary minus is that (a) and (b) are suppressed,
so
perl -Mstrict -we 'my $x=-joke'
gives no error, unlike the previous example with ~.
But a keyword or subroutine name is treated as such after '-':
perl -Mstrict -we 'my $x=-keys'
Not enough arguments for keys at -e line 1, at EOF
Execution of -e aborted due to compilation errors.
Yet another obscure cranny of Perl.
Mike Guy
------------------------------
Date: Thu, 24 Dec 1998 19:42:50 -0600
From: Bill Binkley <bwb@dowebpages.com>
Subject: attach html file to email
Message-Id: <3682ED99.D6C198CA@dowebpages.com>
Need to attach an html file to a email that I am sending with a perl
script!
Any information or where to look would be appreciated very much,
Thanks and have a happy xmas.
Bill
--
Bill Binkley
Software Composers, Inc.
http://www.dowebpages.com
Go to this URL for JavaScript examples
and sample code. For JavaScript at it's
best see the "European Tour". If you
have a question about the examples, put
it in the comments of the visitors form.
------------------------------
Date: Thu, 24 Dec 1998 20:31:44 GMT
From: survey@cryogen.com
Subject: CGI / Shopping Cart Script Help??
Message-Id: <75u8bg$6rd$1@nnrp1.dejanews.com>
Maybe someone can help... I am setting up an online store, using
hypermart.net free hosting. They allow use of CGI, but I am having trouble.
I tried setting up a shopping cart system (Perlshop) but am having a lot of
trouble. Is there any system that is real easy to use? It doesn't have to
be packed with features, but it has to be easy to set up. (And free if
possible)
I also had trouble setting up a message board system... If anyone has set up
CGI on hypermart, please let me know what you had to do.
Thanks,
Greg
PS - sorry if this posts twice. I got an error the first time.
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 24 Dec 1998 16:01:28 -0500
From: Uri Guttman <uri@ibnets.com>
Subject: challenge: 99 bottles of perl (was Re: The quine page)
Message-Id: <39hful2r13.fsf@ibnets.com>
in checking out the quine page i followed a link to the 99 bottles of
beer page which has code in many languages which prints out the drinking
song.
http://www.ionet.net/~timtroyr/funhouse/beer.html
i though the existing perl entry sucked, here it is:
$nBottles = $ARGV[0];
$nBottles = 100 if $nBottles eq '' || $nBottles < 0;
foreach (reverse(1 .. $nBottles)) {
$s = ($_ == 1) ? "" : "s";
$oneLessS = ($_ == 2) ? "" : "s";
print "\n$_ bottle$s of beer on the wall,\n";
print "$_ bottle$s of beer,\n";
print "Take one down, pass it around,\n";
print $_ - 1, " bottle$oneLessS of beer on the wall\n";
}
print "\n*burp*\n";
i was embarrassed that our lovely language was so poorly represented,
so i wrote a (almost) one liner. other than the arg handling it is one
statement. so my xmas eve challenge to all you non-christians and
get-a-lifers is to write your favorite version to generate this ditty.
the hardest part is getting the 's' right. any other short ways of
having 1 or 0 's' based on a boolean are welcome.
enjoy,
uri
$n = shift || 99 ;
print <<BEER while $n ;
$n bottle@{[$s='s'x($n>1)]} of beer on the wall, $n bottle$s of beer!
Take one down and pass it around,
@{[--$n]} bottle@{['s'x($n!=1)]} of beer on the wall!
BEER
Uri Guttman Hacking Perl for Ironbridge Networks
uri@sysarch.com uri@ironbridgenetworks.com
------------------------------
Date: Thu, 24 Dec 1998 17:14:15 -0800
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: challenge: 99 bottles of perl (was Re: The quine page)
Message-Id: <MPG.10ec86c6d0a18497989976@nntp.hpl.hp.com>
In article <39hful2r13.fsf@ibnets.com> on 24 Dec 1998 16:01:28 -0500,
Uri Guttman <uri@ibnets.com> says...
...
> the hardest part is getting the 's' right. any other short ways of
> having 1 or 0 's' based on a boolean are welcome.
I like this:
$n > 1 && 's'
Gut Jul, Y'all!
--
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Thu, 24 Dec 1998 21:50:48 GMT
From: John@melon17.freeserve.co.uk (John )
Subject: Error problem: premature end of script headers?
Message-Id: <3682b6a5.32827530@news.freeserve.net>
As a bit of a newbie to perl
just wonder if someone
could elaborate as to why
i get the error message:'
premature end of script headers?'
I wonder if it's something to do with the first
line/headers:
#!/usr/local/bin/perl ?
john
------------------------------
Date: 24 Dec 1998 22:25:40 GMT
From: "Allan M. Due" <due@murray.fordham.edu>
Subject: Re: Error problem: premature end of script headers?
Message-Id: <75uf14$3f8$0@206.165.165.148>
John wrote in message <3682b6a5.32827530@news.freeserve.net>...
|As a bit of a newbie to perl
|just wonder if someone
|could elaborate as to why
|i get the error message:'
|premature end of script headers?'
|I wonder if it's something to do with the first
|line/headers:
|#!/usr/local/bin/perl ?
Nope it has to do with the headers your script is sending (printing). Without
seeing a code snippet it is hard to tell what the problem is. When you are
having CGI problems the very first place to look is in The Idiot's Guide to
Solving Perl CGI Problems:
http://www.perl.org/CPAN/doc/FAQs/cgi/idiots-guide.html
The second thing to do is to a power search in DejaNews to see if there are
other posts that are related to your problem.
http://www.dejanews.com/home_ps.shtml
A very good general reference site is brian d foy's CGI Meta FAQ
http://computerdog.com/CGI_MetaFAQ.html
HTH
AmD
------------------------------
Date: Thu, 24 Dec 1998 23:23:53 GMT
From: John@melon17.freeserve.co.uk (John )
Subject: Re: Error problem: premature end of script headers?
Message-Id: <3682ccb6.1306032@news.freeserve.net>
On 24 Dec 1998 22:25:40 GMT, "Allan M. Due" <due@murray.fordham.edu>
wrote:
>John wrote in message <3682b6a5.32827530@news.freeserve.net>...
>
>Nope it has to do with the headers your script is sending (printing). Without
>seeing a code snippet it is hard to tell what the problem is. When you are
>having CGI problems the very first place to look is in The Idiot's Guide to
>Solving Perl CGI Problems:
>http://www.perl.org/CPAN/doc/FAQs/cgi/idiots-guide.html
>
>The second thing to do is to a power search in DejaNews to see if there are
>other posts that are related to your problem.
>http://www.dejanews.com/home_ps.shtml
>
>A very good general reference site is brian d foy's CGI Meta FAQ
>http://computerdog.com/CGI_MetaFAQ.html
>
>HTH
>
>AmD
>
Thank's!! The very first link helped me solve the problem!!
john
------------------------------
Date: Thu, 24 Dec 1998 20:42:40 -0500
From: "Ian" <ianf@mediaone.net>
Subject: Forum / Web board
Message-Id: <75uqog$j43$1@denws02.mw.mediaone.net>
I am trying to create a forum (kinda like an advanced WWW Board) and I am
looking for input on how the best way to do this would be. Im running a Unix
server and want to do this in PERL. Any suggestions? Also, is it possible to
have a CGI script actually create a file? I know how to have PERL open a
file in append or write mode, but can it create a file? Thanks so much guys.
And yes I have looked around but I couldnt find the answer :-(
BTW Merry Christmas.
--
________________
Ian Fette
Agelmar
Level 2 Microsoft Sitebuilder Network Member
Lead Webmaster SCMillenium @ www.scmillenium.com
ianf@mediaone.net
agelmar@scmillenium.com
***If you wish to receive a reply within a decent amount of time, please
flag your message as urgent / high. I get over 700 messages a day and to not
get time to read all messages with priority flags of normal/low.***
------------------------------
Date: Thu, 24 Dec 1998 14:42:31 -0600
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Need to output a file starting at a specified line
Message-Id: <nv8u57.lf2.ln@magna.metronet.com>
colemac@sce.com wrote:
: I am relatively new to perl. I have a need to read in a file, present it
: with line numbers to a user, allow a line number selection and based on that
: criteria, output the file beginning with that selected line number to the end
: of file. I can read in the file alright, but selecting the line number based
: on user input and outputing till the EOF is evading me. Any clues? Thanx,
-----------------------------
#!/usr/bin/perl -w
# my_tail - display file with line numbers, prompt for line number,
# put selected line number through eof on STDOUT
# (it is Not So Good for large files...)
die "USAGE: my_tail <filename>" unless @ARGV == 1;
### display file with line numbers
open(IN, $ARGV[0]) || die "could not open '$ARGV[0]' $!";
@lines = <IN>;
close(IN);
foreach $i (0..$#lines) {
printf "%6d: $lines[$i]", $i;
}
### prompt for line number
print "Enter number of first line to be output: ";
chomp($num = <STDIN>);
die "$num is not in the 0 to $#lines range..."
unless $num >= 0 && $num <= $#lines;
### put selected line number through eof on STDOUT
print @lines[$num .. $#lines];
-----------------------------
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: 24 Dec 1998 21:44:01 GMT
From: lt lindley <ltl@rgsun5.viasystems.com>
Subject: Re: Perl 5.005_002 and berkeley db problems
Message-Id: <75ucj1$913$1@rguxd.viasystems.com>
Fluffy <meowing@banet.net> wrote:
:>lt lindley <ltl@rgsun5.viasystems.com> wrote:
:>{Berkeley DB 2.x}
:>> The only problem is that the download link from there points to
:>> ftp.terra.net, which has not answered me in attempts over the past
:>> 3 evenings.
:>You can get a fairly recent kit from CPAN, in the src/misc directory.
:>--
:>"FEAST!"
:> --Alice
Got version 2.4.14. Thanks for the tip.
--
// Lee.Lindley | There was a time when I thought that "being right"
// @bigfoot.com | was everything. Then I realized that getting along
// | was more important. Still, being right is more fun!
// | And if I'm wrong, somebody will get some joy out of telling me!
------------------------------
Date: 24 Dec 1998 20:26:20 GMT
From: "Allan M. Due" <due@murray.fordham.edu>
Subject: Re: Perl for win32 user friendly?
Message-Id: <75u81c$jh4$0@206.165.165.148>
Jean-Pierre Sangin wrote in message <36828795.81FB7299@cam.org>...
|Hello
|Last year I used perl for Macintosh. I clicked on the perl icon and I
|could test my script in the perl interpreter. It was very user friendly.
|Now I own a powerfull PC, I just download perl for win32 and I spent
|several hours to find an perl icon to click into. I was wondering if
|download was bad.
|After websurfing I found a wonderful hidden text from Allan M. Due on
|how to succeed to print "Hello world".
How funny to see a reference to myself. I am not sure what was hidden about
that text but I am glad you liked it <g>. Makes me think that I might want to
go back and edit that thing, and post it someplace more accessible than
DejaNews.
|Is it possible to use easily perl on a PC?
Well it seems pretty easy to me, but I have probably lost my perspective.
Actually, if you associate the desired extensions with perl.exe then you can
simply double click the script and perl will execute the script. That is
often not the best way to run your scripts as the DOS window is only open
while the script is running. Personally, I use the UltraEdit text editor
which allows you to run code from within the editor. It is pretty easy to set
up and you can capture the output to a listbox or a new file. A while back
someone asked me to share my experiences with using Perl and UltraEdit with
the rest of the world, I guess if one more person cares, I could put something
together (but not till I get back from vacation). Man I got to start getting
kickbacks from the author of UE.
Just keep asking questions, it will get easier and easier.
HTH
AmD
[posted and emailed]
------------------------------
Date: Thu, 24 Dec 1998 20:31:54 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Perl script to help in downloading web books/faqs
Message-Id: <comdog-ya02408000R2412982031540001@news.panix.com>
In article <75u871$82u$1@news.metronet.com>, cjc@sdf.lonestar.org (Corey) posted:
> If there isn't a program like this, pointers to a perl module which helps in
> parsing out the links in a web page woul help me out. I had used shell
> scripting before for simple cases, but it's too inflexible -- it looks
> to me like <a href>... could span multiple lines, thus fooling grep..
a combination of HTML::Parser and LWP is usually sufficient.
good luck :)
--
brian d foy <brianNOSPAM@NOSPAM.smithrenaud.com>
CGI Meta FAQ <URL:http://computerdog.com/CGI_MetaFAQ.html>
remove NOSPAM or don't. it doesn't matter either way.
------------------------------
Date: Thu, 24 Dec 1998 12:13:03 -0800
From: lr@hpl.hp.com (Larry Rosler)
Subject: Re: Problem with Text files with my Program.
Message-Id: <MPG.10ec40265b92d98b9898f4@nntp.hpl.hp.com>
[Posted to comp.lang.perl.misc and a copy mailed.]
In article <75u5id$1b8$1@newnews.global.net.uk> on Thu, 24 Dec 1998
19:41:27 -0000, Wallace <niall_wallace@yahoo.com> says...
...
> While reading in lines from Text files, I noticed that it was only reading
> in half the file,
...
> while(<LOGFILE>) {
This reads one line into $_.
> $line = <LOGFILE>;
This reads the next line into $line.
Why not replace them both by:
while ($line = <LOGFILE>) {
...
> Thanx in advance
>
> N. Wallace
>
> (PArt time idiot)
If you say so. :-)
--
(Just Another Larry) Rosler
Hewlett-Packard Company
http://www.hpl.hp.com/personal/Larry_Rosler/
lr@hpl.hp.com
------------------------------
Date: Thu, 24 Dec 1998 20:30:03 GMT
From: Rick Delaney <rick.delaney@home.com>
Subject: Re: Problem with Text files with my Program.
Message-Id: <3682A603.CCDBA628@home.com>
[posted & mailed]
Wallace wrote:
>
> Hi,
>
> Im using Perl to produce my CSYS Computing Project.
>
> The Program is to read in a Web Server Log from an Apache Server.
>
> While reading in lines from Text files, I noticed that it was only
> reading in half the file,
Reading the whole file, but unfortunately only processing half. See
below.
> I tested this by changing the number of Logs in the file and every
> time it gave half of the total lines in the output,
> $records and $len = @hosts.
> both produced half of the number of logs in the file, I tried this
> with another Log file and the same happened.
Good tests. The next step should be to find out which half is missing.
The first half? The last half? Every second record?
>
> The Prg is below:
> # Do the file stuff
> print "What file do you want to open\n";
> $filename = <STDIN>;
> # Create the lists
> chomp ($filename);
> open(LOGFILE,$filename) or die "Sorry. \n The file $filename does not exist.
> \n Program Terminated. \n";
> while(<LOGFILE>) {
> $line = <LOGFILE>;
These last 2 lines are your problem. 'while(<LOGFILE>)' gets a record
from the file and assigns it to $_. This will continue until you run
out of records.
The next line, '$line = <LOGFILE>', reads another record and assigns it
to $line. You are doing this for each record assigned to $_ which you
are ignoring, so you only process every second record.
What you want is:
while ($line = <LOGFILE> ) {
or if you have a version of perl that gives a useless warning for that
line:
while ( defined($line = <LOGFILE>) {
You should be using the -w switch, even though it occasionally produces
dumb warnings. You should also have 'use strict;' at the top of your
script. I can tell you don't since none of your variables are declared
with my().
There's a lot of other strange stuff in your program, not least of which
is @hosts getting initialized nowhere.
Have a good read of perlsyn and perldata and maybe get yourself a copy
of Learning Perl.
HTH.
--
Rick Delaney
rick.delaney@shaw.wave.ca
------------------------------
Date: Thu, 24 Dec 1998 14:47:18 -0600
From: tadmc@metronet.com (Tad McClellan)
Subject: Re: Problem with Text files with my Program.
Message-Id: <m89u57.lf2.ln@magna.metronet.com>
Wallace (niall_wallace@yahoo.com) wrote:
: While reading in lines from Text files, I noticed that it was only reading
: in half the file,
It is reading in all of the file.
However, you are only _processing_ half of the lines in the file ;-)
: while(<LOGFILE>) {
Read a line into the $_ special variable.
But you never do anything with the line just read.
There go your missing lines...
: $line = <LOGFILE>;
: chomp ($line);
while (defined ($line = <LOGFILE>)) {
chomp $line;
...
: (PArt time idiot)
Don't be so hard on yourself ;-)
--
Tad McClellan SGML Consulting
tadmc@metronet.com Perl programming
Fort Worth, Texas
------------------------------
Date: Thu, 24 Dec 1998 21:15:18 -0000
From: "Wallace" <niall_wallace@yahoo.com>
Subject: Re: Problem with Text files with my Program.
Message-Id: <75ub12$5n5$1@newnews.global.net.uk>
Arrrrgh!!!!!!!!!!! (Shouting at self)
I have two books on PERL.
Programming PERL.
and PERL from the ground up.
Due to me misreading (I.e. not paying attention) the sections on what I was
doing,
I accidentally slipped back into BASIC mode.
Thanks for your Help.
Wallace
(Luckily i am not a full time Idiot)
------------------------------
Date: 24 Dec 1998 22:38:02 GMT
From: abigail@fnx.com (Abigail)
Subject: Re: Regex question - removing HTML tags....
Message-Id: <75ufoa$2u3$1@client3.news.psi.net>
Tad McClellan (tadmc@metronet.com) wrote on MCMXLI September MCMXCIII in
<URL:news:b3it57.sh.ln@magna.metronet.com>:
++ GiLLY (hklife@soback.kornet21.net) wrote:
++
++ : :<!-- So, what about this? --
++ : :>
++
++ : s/<!\s*-\s*-.*?-\s*-\s*>//gs;
++ ^^^ ^^^ ^^^
++
++ I don't think spaces are allowed there (I know they are not in
++ SGML, but if we want to call what is accepted by popular browsers
++ "real HTML", then I don't know ;-)
++
Well, there are no spaces allowed right after the <! or between the '--'
immediately following the <!.
'- - >' is of course valid. It just doesn't mean what Gilly thinks it means.
Abigail
------------------------------
Date: Thu, 24 Dec 1998 21:01:19 +0100
From: Jean-Louis Leroy <jll@skynet.be>
Subject: Re: Retrospective on comp.lang.perl.moderated?
Message-Id: <75u62c$mu5$1@nntp.Stanford.EDU>
I've turned off clp.misc as soon as clp.moderated arrived. clp.misc had
too much adverse effect on my mental health. If clp.moderated
disappears, I don't plan to turn clp.misc back on.
I also follow the following newsgroups and lists with delight:
clp.modules
clp.announce
fr.comp.lang.perl
perl6-porters
Why not clp.misc? Not because of FAQs, rather because of flames and
gratuitious insults. It's a pressure cooker up there :(
Well I hope I'm not starting a flame war right now. If moderators think
this might be the effect, let them bin this post - please.
Jean-Louis Leroy
http://ourworld.compuserve.com/homepages/jl_leroy/
------------------------------
Date: Thu, 24 Dec 1998 21:30:25 GMT
From: mschechter@earthlink.net (Mike Schechter)
Subject: Re: Sendmail
Message-Id: <3682b239.16586770@news.earthlink.net>
On Mon, 21 Dec 1998 08:01:18 GMT, "John Talbert"
<*johntalbert@home.com*> wrote:
<-- Snipped -->
You can also try Blat, which you can find at:
http://gepasi.dbs.aber.ac.uk/softw/Blat.html
I have successfully used it on NT and 95 machines.
Mike Schechter
------------------------------
Date: Thu, 24 Dec 1998 22:22:51 GMT
From: tenthousand@geocities.com
Subject: Re: Using Exec CGI in ASP
Message-Id: <75uerq$brl$1@nnrp1.dejanews.com>
In article <36816ac3.0@news1.mcmail.com>,
"Matty" <mattfreeman@mcmail.com> wrote:
> Hi,
>
> Can anyone tell me how to use exec cgi in an page
> with .asp as the extension. I usually insert a banner
> system in my .shtml using the exec cgi server side
> tag, however when a file is .asp it ignores the exec
> cgi, but I don't want to change it to .html or .shtml
> because it will ignore the asp script (<% ... %>)
Why not use the method asp provides for banners? It's one of the objects
included in asp, and is quite simple. ;-)
BVH
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: 24 Dec 1998 16:58:20 -0500
From: dha@panix.com (David H. Adler)
Subject: Re: Why Is Perl not a Language?
Message-Id: <slrn785e7r.k7d.dha@panix.com>
On 16 Dec 1998 15:52:16 GMT, David Jacoby <jacoby@pier.ecn.purdue.edu> wrote:
>In article <oeeemq0qhth.fsf@alpha.hut.fi>,
>Jarkko Hietaniemi <jhi@alpha.hut.fi> wrote:
>>> Perl was designed by many.
>>Well, I'd say no. Perl was designed by Larry Wall but his sources of
>>inspiration were many. There are features from C, UNIX shells,
>>FORTRAN, BASIC-PLUS, Ada, Sanskrit (just testing whether you are still
>>awake), LISP, ...
>
>He is a linguist. I wouldn't put adding Sanskrit to Perl beyond him....
Then there are all those people (Python programmers all, I'm sure :-)
that think Perl *is* Sanskrit...
--
David H. Adler - <dha@panix.com> - http://www.panix.com/~dha/
"You can lead a bigot to water, but if you don't tie him up, you can't
make him drown." - The Psychodots
------------------------------
Date: Thu, 24 Dec 1998 22:22:25 GMT
From: david@pdh.com (Dave)
Subject: Re: Why Is Perl not a Language?
Message-Id: <3683bb96.154205645@gatekeeper>
Thomas Brian Holdren (irc_addict@hotmail.com) wrote:
> Yeah, I'm a perl baby-talker. Bought my first camel book last week. I still
> sometimes use the $_ variable (gasp). I was previously a BASIC programmer (you
> may snicker), and had some shell scripting experience (ksh). My question is:
> Why is perl not a "programming language"?
>
> For example, why is C or BASIC a "programming language", and perl is just a
> "scripting language". Is it because you don't explicitly compile perl
Perl is a programming language in that it is a realization of a
Von-Neumann machine. That is, it can take input, process it using
iteration, loops, and if-then statements, and produce an output. This
is something that all programming languages have in common, such much
so that any problem that can be solved in one programming language can
be solved in all others (though the solution may be very painful to
code). Basic, C, C++, Pascal, Perl, Java, JavaScript, Lisp, etc. are
all examples of programming languages. HTML is not a programming
language because it cannot make decisions. It is a markup language.
Some people also label Perl as a scripting language. Characteristics
of scripting languages might include that the code is interpreted
rather than compiled, or that programs (small ones) can be entered on
the command line. JavaScript, Basic, C, and Lisp are sometimes also
considered scripting languages.
The interface (or lack of one) to a program has nothing to do with
whether or not it was made with a programming or scripting language.
One can write a C++ program that takes no input and produces no output
(and thus has no interface), or a very interactive program with a
scripting language (such as a LISP implementation of the Eliza
program).
Dave
(david@pdh.com)
------------------------------
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 4494
**************************************