[10980] in Perl-Users-Digest
Perl-Users Digest, Issue: 4580 Volume: 8
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Jan 8 03:07:15 1999
Date: Fri, 8 Jan 99 00:00:20 -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: 4580
Today's topics:
Beginner problem <ex5316@netvigator.com>
Re: HELP with PERL and CGI <mclellan@ReactionDesign.com>
Re: Perl Criticism raoul@xenon.triode.net.au
Re: Problem with PPM grossd@hq.5sigcmd.army.mil
Re: Use of flags? <ebohlman@netcom.com>
Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 08 Jan 1999 15:15:08 +0800
From: Alex <ex5316@netvigator.com>
Subject: Beginner problem
Message-Id: <3695B07C.582BFDA2@netvigator.com>
Please help
In order to learn perl, I get my own virtual hosting. It can use now.
However when I put my first simple script (test.pl) to the cgi-bin
directory for testing. It
don't work. I check and try everything many many times, e.g.change Unix
mode , ASCII, etc....but it's still not work.
The script is simply:
#!/usr/local/bin/perl
print "content-type: text/plain\n\n";
print "This is a test";
When I execute the script from my browser , only the error below appear
:
Internal Server Error
The server encountered an internal error or misconfiguration and was
unable to complete your
request.
Please contact the server administrator, and inform them of the time the
error occurred, and anything you might have done that may have caused
the error.
Why ? What will be the possible answer ?
Please help
Thank you
------------------------------
Date: Thu, 7 Jan 1999 23:57:41 -0800
From: "Clifton L. McLellan" <mclellan@ReactionDesign.com>
Subject: Re: HELP with PERL and CGI
Message-Id: <rTil2.509$6P4.5980@news.connectnet.com>
1.) Change
use CGI;
to
use CGI qw/:all/;
or the subset you eventually need.
2.) Close the quotes on lines 50 and 60.
You still have a few problems after that, but the rest is just debugging...
:)
--
Hope this helps,
Clifton L. McLellan
SiliconJesus wrote in message ...
>I have written a guestbook from a Perl book, and I was going to modify it,
>but I can't get the books version to work, I'm using Perl 5.003 and when I
>run I get the following errors:
>Use of uninitialized value at /usr/psoft/lib/perl5/site_perl/CGI.pm line
>83.
>No comma allowed after filehandle at myguest.cgi line 23.
>
>
>I don't quite understand why this is not working, unless the code I'm
>using is for more recent versions of Perl, any and all help is appreciated
>
>the code is as follows
>
>
> ,. '\'\ ,---.
> | \\ l\\l_ // | ~NARF!!
> | \\/ `/ `.| |
> | Y | | || Y |
> | \| | |\ / |
> \ | o|o | > /
> \___\_--_ /_/__/
> /.-\(____) /--.\
> `--(______)----'
> U// U / \
> / \ / /|
>==========================================================================
>| John M. Softich | "Times have changed and times are |
>| softichj@cs.montana.edu | strange. Here I come, but I ain't |
>| Montana State University | the same" |
>| Http://cs.montana.edu/~softichj | ~Ozzy |
>==========================================================================
>
------------------------------
Date: Fri, 08 Jan 1999 07:44:02 GMT
From: raoul@xenon.triode.net.au
Subject: Re: Perl Criticism
Message-Id: <774d02$em7$1@nnrp1.dejanews.com>
In article <36955B77.9BB564FF@mediaone.net>,
"Michael D. Schleif" <mds-resource@mediaone.net> wrote:
> Isn't set theory fun?
>
> C is a subset of programming languages.
> C++ is a subset of programming languages.
> Pascal is a subset of programming languages.
> Java is a subset of programming languages.
> Perl is a subset of programming languages.
>
Not really... how about
Perl is an element of the set of programming languages.
Java is an element of the set of progtamming languages.
etc, etc.
One could also say
The set of scripting languages is a subset of the set of programming
languages. The set of compiled languages is a subset of the set of
programming languages. The set of functional languages is a subset of the set
of programming languages.
n'est-ce pas?
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Fri, 08 Jan 1999 07:26:40 GMT
From: grossd@hq.5sigcmd.army.mil
Subject: Re: Problem with PPM
Message-Id: <774bvf$e08$1@nnrp1.dejanews.com>
I've the exact same problem, was using ppm for some time w/o problems on 3
different NT machines. Now all of a sudden I can't INSTALL anymore, keep
getting the same ERROR msg.
What is going on?
HELP!
In article <75omfu$lam$1@nnrp1.dejanews.com>,
kate_stafford@my-dejanews.com wrote:
> I've been using ActiveState version 5.005_02 on NT and the Perl Package
> Manager with no problem for awhile until today. When I try to run the verify
> command with PPM, I get the following error:
>
> no element found at line 1, column 0, byte -1 at
> D:\Perl\site\lib/XML/Parser.pm line 117
>
> I tried to replace the XML-Parser module but get the same message. I have
> uninstalled and reinstalled a dozen times, but I still get the message. I've
> noticed that the uninstall sucks, for lack of a better way to put it, and
> there are several entries left behind in the registry. Is it possible that
> something in there has been corrupted?
>
> Any help would be appreciated. I really use this feature of Perl often and I
> need it functional!
>
> Thanks in advance
>
> --
> Kate Stafford, MCSE
> ICQ 12183309
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
>
-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
------------------------------
Date: Fri, 8 Jan 1999 07:01:13 GMT
From: Eric Bohlman <ebohlman@netcom.com>
Subject: Re: Use of flags?
Message-Id: <ebohlmanF58BI1.6sG@netcom.com>
Laran Coates <lcoates@bu.edu> wrote:
: Does anyone have any advice on the use of flags to handle while loops etc.?
: Things like certain common pitfalls or mistakes in the use of flags would be
: much appreciated and very helpful.
In general, if you find yourself using lots of flags within loops, you
should rethink your control structures and rewrite them so that your loop
state is maintained by code rather than data. Make sure you're familiar
with how to use Perl's next and last operators; they can often eliminate
the need for flags.
------------------------------
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 4580
**************************************