[10904] in Perl-Users-Digest

home help back first fref pref prev next nref lref last post

Perl-Users Digest, Issue: 4505 Volume: 8

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Dec 28 10:37:58 1998

Date: Mon, 28 Dec 98 07:16:37 -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           Mon, 28 Dec 1998     Volume: 8 Number: 4505

Today's topics:
    Re: Best Perl Book for a "Not Yet" Perl Programmer (brian d foy)
    Re: Can not get perlcc to work in Win95 dturley@pobox.com
    Re: Equivilent of C's is_alpha() function? <gbacon@cs.uah.edu>
    Re: filehandle question (Bart Lateur)
    Re: filehandle question <gellyfish@btinternet.com>
    Re: How do I...... <muskrat@lvnworth.com>
    Re: How do I...... <gellyfish@btinternet.com>
        How to get start ? <ex5316@netvigator.com>
        Installing modules without PPM kate_stafford@my-dejanews.com
        Need good, simple regex help/tutorial <kims@tip.net.au>
    Re: Need good, simple regex help/tutorial (Bart Lateur)
    Re: need Perl Programmer in Dayton Ohio Area (brian d foy)
        New posters to comp.lang.perl.misc <gbacon@cs.uah.edu>
        perl for winnt <tech@aba-architects.com>
        Perl on NT - How to run as a daemon process <klingela@nt.com>
    Re: Problem with use base <nadgauda@ms.com>
    Re: Retrospective on comp.lang.perl.moderated? dturley@pobox.com
        running a perlscript <reine.ahlgren@home.se>
    Re: running a perlscript <gellyfish@btinternet.com>
    Re: Sending mail to multiple addresses <gellyfish@btinternet.com>
        Statistics for comp.lang.perl.misc <gbacon@cs.uah.edu>
    Re: Syntactical weirdness? Or is it just me? (Andrew M. Langmead)
    Re: Syntactical weirdness? Or is it just me? (Andrew M. Langmead)
    Re: Usual "Hello, world" problem <gellyfish@btinternet.com>
        Why does my server not allow post method? (John )
    Re: Why does my server not allow post method? (brian d foy)
    Re: Why does my server not allow post method? <gellyfish@btinternet.com>
        Windows NT Installation problem <michael@mechatronik.uni-linz.ac.at>
        Special: Digest Administrivia (Last modified: 12 Dec 98 (Perl-Users-Digest Admin)

----------------------------------------------------------------------

Date: Mon, 28 Dec 1998 06:27:59 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Best Perl Book for a "Not Yet" Perl Programmer
Message-Id: <comdog-ya02408000R2812980627590001@news.panix.com>

In article <3690dcf0.118636014@news.frontiernet.net>, j5rson@iversonsoftware.com posted:

> Here are some book suggestions:
> 
> Programming Perl (2nd Edition)
> http://www.amazon.com/exec/obidos/ASIN/1565921496/iversonsoftwarecA

why not metion that you kick money if someone buys the books by
following one of these links?

-- 
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: Mon, 28 Dec 1998 12:36:32 GMT
From: dturley@pobox.com
Subject: Re: Can not get perlcc to work in Win95
Message-Id: <767u0g$d41$1@nnrp1.dejanews.com>

In article <F4nv8G.GIM@world.std.com>,
  debl@world.std.com (David Lees) wrote:

> Anyone know if the perlcc.bat script works properly under Win95

The answer appears to be no.
____________________________________
David Turley
dturley@pobox.com
http://www.binary.net/dturley/

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


------------------------------

Date: 28 Dec 1998 13:35:43 GMT
From: Greg Bacon <gbacon@cs.uah.edu>
Subject: Re: Equivilent of C's is_alpha() function?
Message-Id: <7681ff$a74$1@info.uah.edu>

In article <39vhj23ed9.fsf@ibnets.com>, Uri Guttman  <uri@ibnets.com> wrote:
: >>>>> "a" == aaron1  <aaron1@citizen.infi.net> writes:
:
:  a> I'm trying to parse a file, and I need to determine if the string
:  a> variable that I have the line in contains alphanumeric data or
:  a> numeric data.  So I'm wondering if Perl has a function like C's
:  a> is_alpha()?
:
: why should it? perl has regexes which can do all of the is_* functions
: and more. see perlre or go to www.perl.com and rtfm.

Not strictly true.  What is the regular expression equivalent to
ispunct()?  How about isprint()?

Greg


------------------------------

Date: Mon, 28 Dec 1998 12:11:54 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: filehandle question
Message-Id: <368b74f0.3910440@news.skynet.be>

Kent Wang wrote:

>how can i redirect STDERR (or any other filehandle, for that matter) to
>STDOUT?

     open(STDERR,">&STDOUT") or die "Oops! Can't redirect STDERR: $!";

and I second the motion not to post in html. I for one, do have to go
through lots of trouble to be able to see the message.

	Bart.


------------------------------

Date: 28 Dec 1998 14:00:02 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: filehandle question
Message-Id: <7682t2$jo$1@gellyfish.btinternet.com>

On 28 Dec 1998 04:37:34 GMT Sam Holden <sholden@pgrad.cs.usyd.edu.au> wrote:
> On Sun, 27 Dec 1998 22:20:12 -0600, Kent Wang <kwang@kwang.org> wrote:
>><!doctype html public "-//w3c//dtd html 4.0 transitional//en">
>><html>
>>how can i redirect STDERR (or any other filehandle, for that matter) to
>>STDOUT?</html>
> 
> perlfaq5 : How do I dup() a filehandle in Perl?
> 
Yup.
> It would be appreciated if you would not past in HTML - by me anyway.
> 
Especially if the browser in question is broken to the extent that it doesnt
offer a Content-type: header or an alternative non-MIME part so that
newsreaders that can do so will excise the offending part.

/J\
-- 
Jonathan Stowe <jns@btinternet.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: Mon, 28 Dec 1998 03:49:33 -0600
From: Matthew Musgrove <muskrat@lvnworth.com>
Subject: Re: How do I......
Message-Id: <3687542D.4A166B2B@lvnworth.com>

Cool wrote:

> I have text sitting in file.
>
> What I need to do is delete everything before a certain word. i.e
>
> The world is a happening place.
>
> and I needed to delete everything before "place", how would I go about this.
>
> The words before it are always changing so I cant use something like:
>
> $name =~  s/The world is a happening//;
>
> I've looked in the FAQ, but either Im dumb or stupid because I am sure there
> is a simple solution to it.
>
> Also could someone tell me if there is a good place on the web that tells
> you about things like
>
> $name =~ s/something/somethingelse/g;
> $name =~ tr/something/somethingelse;
>
> and similar things as above. I know the FAQ has some stuff, just wondering
> if there were other places that might have info on it.
>
> Thanks a heap in advance,
>
> David Branston.
> gxd@spamproof.bigpond.com

I'm new to this but it seemed like a good learning experience. First I tried the
following code:

my $test = "this is a happening place";
print "$test\n";
$test =~ tr/.*\bplace$/place/;
print "$test\n";

but the results were not right.  (ie. this is e haccening ceeee )
That's when I realized that I had used tr instead of s so...

$name =~ s/.*\bplace$/place/

Hope this helps.
--
  Camel: A horse designed by a committee.
                   Matthew Musgrove - muskrat@lvnworth.com





------------------------------

Date: 28 Dec 1998 14:23:39 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: How do I......
Message-Id: <76849b$ls$1@gellyfish.btinternet.com>

On Mon, 28 Dec 1998 22:51:24 +1100 Cool <dusty@hofffmain.com> wrote:
> I have text sitting in file.
> 
> What I need to do is delete everything before a certain word. i.e
> 
> The world is a happening place.
> 
> and I needed to delete everything before "place", how would I go about this.
> 
> The words before it are always changing so I cant use something like:
> 
> $name =~  s/The world is a happening//;
> 
> 
> I've looked in the FAQ, but either Im dumb or stupid because I am sure there
> is a simple solution to it.
> 

Check out perlfaq5 esp. the section entitled:

       How do I change one line in a file/delete a line in a
       file/insert a line in the middle of a file/append to the
       beginning of a file?


> Also could someone tell me if there is a good place on the web that tells
> you about things like
> 
> $name =~ s/something/somethingelse/g;
> $name =~ tr/something/somethingelse;
> 

man perlop
man perlre

or check out :

<URL:http://reference.perl.com/query.cgi?regexp>

for some links to various resources on regexen.

> and similar things as above. I know the FAQ has some stuff, just wondering
> if there were other places that might have info on it.
> 

The FAQ and documentation are your friends.

/J\
-- 
Jonathan Stowe <jns@btinternet.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: Mon, 28 Dec 1998 22:16:21 +0800
From: Free Stuff <ex5316@netvigator.com>
Subject: How to get start ?
Message-Id: <368792B4.E248BD03@netvigator.com>

I'm a begainner.
I go to the http://www.perl.com/pace/pub, wishing to download a perl
software so that I can learn, test and run the perl lang. on my
computer(window 95).
But I don't know which one should be downloaded ? Also do I need to
download the complier too ?
Please help....
Thank you
Alex



------------------------------

Date: Mon, 28 Dec 1998 14:26:33 GMT
From: kate_stafford@my-dejanews.com
Subject: Installing modules without PPM
Message-Id: <7684em$i4d$1@nnrp1.dejanews.com>

Hello

I need to install a couple of packages on my ActivePerl build 508. However,
PPM is not working on any of my machines. Is there a way to install packages
by hand?

Any help you could provide will be appreciated.

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    


------------------------------

Date: Mon, 28 Dec 1998 23:26:13 +1100
From: "Kim Saunders" <kims@tip.net.au>
Subject: Need good, simple regex help/tutorial
Message-Id: <sPKh2.58$4n.703@nsw.nnrp.telstra.net>

Hi all...

I am some advice on how to learn about using regular expressions. I know
what they do, and I know how useful and powerful they must be. I have read
all the docs on them I can find, I have read the relevant bits in my copy of
Programming Perl, but I just don't get it! Everything I read skips over the
simple, basic stuff really quickly, and goes on to demonstrate how to
recognise an email adress, or a duplicated word, with a bewildering series
of characters!

I am from a windows background, so I haven't had any experience with regexs
in other software, like vi, sed awk, or whatever those unix things that Perl
is inspired by, perhaps this is where people learn the basics, and by the
time they move on the perl they are ready to try and solve the worlds
problems with an incredibly complex regex?

I have been using perl on and off for around 2 yrs, almost soley for cgi. I
am using perl5 on my own linux system at home. While I have been using perl
for a fair while, I generally do the simple things required by cgi, half of
which is just html witchery... but I am not a beginner, and am fairly
confident.

I would _really_ appreciate it if someone can give me a basic, thorough
tutorial to read, so that I can finally exploit the potiential of regexes.

A few examples of things I would like to be able to to for a current
project:

Check to see if a variable is an integer 0<$x<1000 I could do this another
way, using plain old maths, but can it be done better? Isn't a string (ie,
letters) greater than 0 anyway?

Check to see if a variable is a valid 24 bit number (a colour)

I have a string $str = 'hello i am a string'; how do I get each word into a
variable (or array element) of its own?

How would one go about extracting the data after each header in a email
message?

These are just a few examples. All of them I could (and have) done in other,
messier ways. I would love to be able to compress a 5 or 10 line while loop
into a single line!

Thanks for an excellent language, concept and community, this and all the
other help I have received.

KimS

PS pls respond via email.




------------------------------

Date: Mon, 28 Dec 1998 13:50:08 GMT
From: bart.lateur@skynet.be (Bart Lateur)
Subject: Re: Need good, simple regex help/tutorial
Message-Id: <36888755.8611910@news.skynet.be>

Kim Saunders wrote:

>I would _really_ appreciate it if someone can give me a basic, thorough
>tutorial to read, so that I can finally exploit the potiential of
>regexes.

Try the links from this index:

	http://reference.perl.com/query.cgi?regexp+index

In particular, this link: 

	TomC's "Irregular Expressions"
	http://www.perl.com/perl/all_about/regexps.html

>Check to see if a variable is an integer 0<$x<1000 I could do this another
>way, using plain old maths, but can it be done better? Isn't a string (ie,
>letters) greater than 0 anyway?

No, I wouldn't do that. Regexps are not for match. You can check if it's
all digits, though:

	$number =~ /^\d+$/  or die "This is not a number";

Now you've established that it is indeed numeric, you can check the
range:

	$number>0 && $number<1000 or die "Out of range";

>Check to see if a variable is a valid 24 bit number (a colour)

Same thing. No math with regexps. But you can check if it is indeed a 6
digit hex number:

	if (/^[0-9A-F]{6}$/i) {
		print "Six digit hex number\n";
	} else {
		print "Oi! What's this then!\n";
	}

>I have a string $str = 'hello i am a string'; how do I get each word into a
>variable (or array element) of its own?

Either use split or a global match with parentheses.

	@word = split / +/,$str;
or
	@word = $str=~/(\w+)/g;

which is nicer for { $str = "Hello, world!" }  because it strips the
puctuation (though you might like to keep any hyphens:)

	@word = $str=~/([\w\-]+)/g;

(Yes I know the backslash is optional for the hyphen in the character
class in this particular case, but I think it's clearer).

   HTH,
   Bart.


------------------------------

Date: Mon, 28 Dec 1998 06:26:20 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: need Perl Programmer in Dayton Ohio Area
Message-Id: <comdog-ya02408000R2812980626200001@news.panix.com>

In article <Aqwh2.141$Oc.305@news2>, "Steve Sunshine" <sunshine@infinet.com> posted:

> Looking for a very good perl programmer for some program development work in
> the Dayton Ohio area. 

you might check with the Dayton Perl Mongers <URL:http://dayton.pm.org/>

> Sorry but only local programmers please respond.

[ you did post to a global medium... ]

-- 
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: 28 Dec 1998 12:44:53 GMT
From: Greg Bacon <gbacon@cs.uah.edu>
Subject: New posters to comp.lang.perl.misc
Message-Id: <767ug5$9ck$1@info.uah.edu>

Following is a summary of articles from new posters spanning a 7 day
period, beginning at 21 Dec 1998 12:43:32 GMT and ending at
28 Dec 1998 06:28:14 GMT.

Notes
=====

    - A line in the body of a post is considered to be original if it
      does *not* match the regular expression /^\s{0,3}(?:>|:|\S+>|\+\+)/.
    - All text after the last cut line (/^-- $/) in the body is
      considered to be the author's signature.
    - The scanner prefers the Reply-To: header over the From: header
      in determining the "real" email address and name.
    - Original Content Rating (OCR) is the ratio of the original content
      volume to the total body volume.
    - Find the News-Scan distribution on the CPAN!
      <URL:http://www.perl.com/CPAN/modules/by-module/News/>
    - Please send all comments to Greg Bacon <gbacon@cs.uah.edu>.
    - Copyright (c) 1998 Greg Bacon.  All Rights Reserved.
      Verbatim copying and redistribution is permitted without royalty;
      alteration is not permitted.  Redistribution and/or use for any
      commercial purpose is prohibited.

Totals
======

Posters:  89 (29.4% of all posters)
Articles: 121 (16.4% of all articles)
Volume generated: 167.5 kb (13.4% of total volume)
    - headers:    83.7 kb (1,768 lines)
    - bodies:     82.2 kb (2,645 lines)
    - original:   62.4 kb (2,060 lines)
    - signatures: 1.4 kb (31 lines)

Original Content Rating: 0.759

Averages
========

Posts per poster: 1.4
    median: 1 post
    mode:   1 post - 65 posters
    s:      1.1 posts
Message size: 1417.4 bytes
    - header:     708.6 bytes (14.6 lines)
    - body:       695.6 bytes (21.9 lines)
    - original:   528.2 bytes (17.0 lines)
    - signature:  12.2 bytes (0.3 lines)

Top 10 Posters by Number of Posts
=================================

         (kb)   (kb)  (kb)  (kb)
Posts  Volume (  hdr/ body/ orig)  Address
-----  --------------------------  -------

    5     4.8 (  3.3/  1.5/  1.4)  stevenba@ccpl.carr.org (Steven Barbash)
    4     3.7 (  3.0/  0.7/  0.7)  Ruben I Safir <ruben@llinderman.dental.nyu.edu>
    3     3.6 (  2.5/  1.1/  0.5)  John@melon17.freeserve.co.uk
    3     4.3 (  2.3/  1.9/  1.5)  jlcrosby@fwi.com
    3     5.5 (  2.2/  3.3/  2.0)  tenthousand@geocities.com
    2     4.9 (  1.4/  3.5/  3.5)  unxgroup@nyct.net
    2     3.4 (  1.6/  1.7/  1.4)  Scott Allen Zsori <zsoris@post.uwstout.edu>
    2     3.3 (  1.5/  1.8/  1.4)  bostic@bostic.com
    2     2.2 (  1.4/  0.9/  0.9)  Swervin33@hotmail.com (Cave Dweller)
    2     2.3 (  1.6/  0.7/  0.5)  Raphael Conrad <raphael@iscusa.com>

These posters accounted for 3.8% of all articles.

Top 10 Posters by Volume
========================

  (kb)   (kb)  (kb)  (kb)
Volume (  hdr/ body/ orig)  Posts  Address
--------------------------  -----  -------

   5.5 (  2.2/  3.3/  2.0)      3  tenthousand@geocities.com
   4.9 (  1.4/  3.5/  3.5)      2  unxgroup@nyct.net
   4.8 (  3.3/  1.5/  1.4)      5  stevenba@ccpl.carr.org (Steven Barbash)
   4.3 (  1.4/  2.9/  1.5)      2  "Applak!" <XamoXrphous@tecXhnolXogist.com>
   4.3 (  2.3/  1.9/  1.5)      3  jlcrosby@fwi.com
   4.2 (  1.3/  2.9/  1.3)      2  cade@acm.org
   4.2 (  1.4/  2.8/  1.5)      2  medi@cybershell.com
   3.7 (  3.0/  0.7/  0.7)      4  Ruben I Safir <ruben@llinderman.dental.nyu.edu>
   3.7 (  1.7/  1.5/  1.0)      2  jcostom@madcow.jasons.org (Jason Costomiris)
   3.6 (  2.5/  1.1/  0.5)      3  John@melon17.freeserve.co.uk

These posters accounted for 3.5% of the total volume.

Top 10 Posters by OCR (minimum of three posts)
==============================================

         (kb)    (kb)
OCR      orig /  body  Posts  Address
-----  --------------  -----  -------

1.000  (  0.7 /  0.7)      4  Ruben I Safir <ruben@llinderman.dental.nyu.edu>
0.913  (  1.4 /  1.5)      5  stevenba@ccpl.carr.org (Steven Barbash)
0.758  (  1.5 /  1.9)      3  jlcrosby@fwi.com
0.608  (  2.0 /  3.3)      3  tenthousand@geocities.com
0.406  (  0.5 /  1.1)      3  John@melon17.freeserve.co.uk

Bottom 10 Posters by OCR (minimum of three posts)
=================================================

         (kb)    (kb)
OCR      orig /  body  Posts  Address
-----  --------------  -----  -------

1.000  (  0.7 /  0.7)      4  Ruben I Safir <ruben@llinderman.dental.nyu.edu>
0.913  (  1.4 /  1.5)      5  stevenba@ccpl.carr.org (Steven Barbash)
0.758  (  1.5 /  1.9)      3  jlcrosby@fwi.com
0.608  (  2.0 /  3.3)      3  tenthousand@geocities.com
0.406  (  0.5 /  1.1)      3  John@melon17.freeserve.co.uk

5 posters (5%) had at least three posts.


Top 10 Crossposters
===================

Articles  Address
--------  -------

       3  Ilya <ilya@napavlly.rose.hp.com>
       3  fs60@rumms.uni-mannheim.de
       2  Jeremy Bowen <JeremyB@clear.net.nz>
       2  nemanij@hotmail.com
       2  Stefan Waldherr <stefan@waldherr.org>
       1  "Steve Swett" <steve@grantps.net>
       1  survey@cryogen.com
       1  Ellen Maremont Silver <silver@oreilly.com>
       1  Mark Clark <markc@evsx.com>
       1  Raphael Conrad <raphael@iscusa.com>


------------------------------

Date: Mon, 28 Dec 1998 07:42:45 -0700
From: Shana Priwer <tech@aba-architects.com>
Subject: perl for winnt
Message-Id: <368798E5.AD193F6A@aba-architects.com>

Hi all - still trying to set up Perl and CGI for my website, which I
host through IIS on a Windows NT 4 Workstation computer. Basically I
have a file called upload.cgi, which i
have in d:\winnt\system32\inetsrv\iisadmin\cgi-bin\. The first line of
upload.cgi, i edited to read this: $SAVE_DIRECTORY = "../../../../Perl";

because i thought it was supposed to go to the Perl path, which is
d:\perl. When you try to use the upload script over the web, you get a
501 http error. (you can see this at
http://208.235.164.47/iisadmin/upload.cgi)  --  could someone please
give me some idea of what's wrong? I've been through the FAQ and can't
get this resolved.

Many thanks-
Shana



---== http://www.newsfeeds.com - Largest Usenet Server In The World! ==---

---== http://www.newsfeeds.com - Largest Usenet Server In The World! ==---


------------------------------

Date: Mon, 28 Dec 1998 08:50:37 -0500
From: "Adrian G. Klingel" <klingela@nt.com>
Subject: Perl on NT - How to run as a daemon process
Message-Id: <36878CAD.FABEB778@nt.com>

Happy Holidays to all of you,

  I've written a program which checks for the existence of a file, and
if it finds the file, that file is loaded into an Oracle database. 
Right now we have an unreliable scheduler for Windows NT, so I don't
really want my job to kick off at a certain time every day, I would
rather my Perl program always run, polling this directory during certain
hours.  Does anyone out there know how to set up a Perl program as a
task which occurs on startup and runs in the background?  I know I could
run the command from a batch file and add that to the Startup program
group, but that runs in the foreground with the DOS window, which anyone
playing around on the server can close.  Please help if you can.

Adrian Klingel
klingela@nt.com


------------------------------

Date: Mon, 28 Dec 1998 08:56:10 -0500
From: Nikhil Nadgauda <nadgauda@ms.com>
Subject: Re: Problem with use base
Message-Id: <36878DFA.80F04E04@ms.com>

The problem is that 'use base' doesn't automatically require the base module
if the package already exists.  In the following snippet of code,

package Bar;
use base qw( Foo );

the use base pragma will perform a

require Foo;

if Foo is not an existing package name.  Otherwise it will skip the require.
In your case,

package HTML::Customer;

creates a package called HTML and a package called HTML::Customer.  Then when
you do

use base qw( HTML );

it skips the require, thus leading to the error.  Manually including the
require solves the problem.  I have a patch for base.pm to fix this problem
(I wouldn't really call it a bug), but haven't posted it yet.  I'll post it
sometime after Jan 1.

Hope this helps,
-Nick



Kevin Baker wrote:

> HI,
>
> does anyone have experience with using this? The man page says that it
> establishes an IS-A relationship with the base class.
>
> I tried it with this bit of code
>
> package HTML::Customer;
> use strict;
> #require HTML;
> use base qw(HTML);
>
> but get this error message
>
> Can't locate object method "new" via package "HTML::Customer" at
> manilow.pl line 113.
>
> However if I uncomment the require line it works.
>
> Is there any reason why this is happening? If I understand the man page I
> shouldn't need the require, right?
>
> I'd like to just write this. Saves me a whole line! woooo whooo!
>
> package HTML::Customer;
> use strict;
> use base qw(HTML);
>
> Kev
>
> bash-2.01$ perl -v
>
> This is perl, version 5.005_02 built for i386-svr5



------------------------------

Date: Sun, 27 Dec 1998 00:44:17 GMT
From: dturley@pobox.com
Subject: Re: Retrospective on comp.lang.perl.moderated?
Message-Id: <763vt1$dpk$1@nnrp1.dejanews.com>

In article <yyHg2.6598$5s5.602@news.rdc1.az.home.com>,
  "IQTech-P.Reilly" <preilly@isoquantic.com> wrote:

> I am happy with the huge reduction in noise. The low volume might be due to
> the number of lurkers (like myself), who prefer to read and learn.
>

How is the noise level reduced, when many questions, like the one that started
this thread, are cross-posted to both groups. Doesn't that defeat the purpose?
____________________________________
David Turley
dturley@pobox.com
http://www.binary.net/dturley/

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own    


------------------------------

Date: Mon, 28 Dec 1998 13:22:33 +0100
From: "Reine Ahlgren" <reine.ahlgren@home.se>
Subject: running a perlscript
Message-Id: <767t71$5r4$1@cubacola.tninet.se>

Hi

Im an absolute beginner to perl and have just bougt a book "Learning perl".
My problem is that when i've written a script and want to execute it says
"command not found". When i put the script in the /usr/bin catalogue it
works just fine. I've put the right permissions on the file also. So my
question is how do i get the perlscript to run from another catalogue on my
Linux-machine than /usr/bin?

I would be very happy if someone could help me.

Reine Ahlgren




------------------------------

Date: 28 Dec 1998 14:33:10 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: running a perlscript
Message-Id: <7684r7$m0$1@gellyfish.btinternet.com>

On Mon, 28 Dec 1998 13:22:33 +0100 Reine Ahlgren <reine.ahlgren@home.se> wrote:
> Hi
> 
> Im an absolute beginner to perl and have just bougt a book "Learning perl".
> My problem is that when i've written a script and want to execute it says
> "command not found". When i put the script in the /usr/bin catalogue it
> works just fine. I've put the right permissions on the file also. So my
> question is how do i get the perlscript to run from another catalogue on my
> Linux-machine than /usr/bin?
> 

You should read the perlrun manpage for information on Perl invocation.

If your shebang line ('#!') is correct and your $PATH is set up as you
require then you should be able to place your Perl programs anywhere in your
$PATH - you might want to set up a private bin directory to contain your
scripts.

If you have any questions about altering your $PATH then you should take it
up with the documentation for your shell, the FAQ for some comp.unix.*
newsgroup or one of those newsgroups.

/J\
-- 
Jonathan Stowe <jns@btinternet.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: 28 Dec 1998 13:56:32 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: Sending mail to multiple addresses
Message-Id: <7682mg$jj$1@gellyfish.btinternet.com>

On 28 Dec 1998 04:36:03 GMT Groovy94 <groovy94@aol.com> wrote:
> ok, let's pretend the text file's name was emails.txt
> 
> open (EMAILS,"<emails.txt");
> @emails=<EMAILS>;
> close (EMAILS);
> 
> foreach $email (@emails) {
> open (MAIL,"$mailprog");
> print MAIL "To: $email";
> print MAIL "From: You@yourhost.com";
> print MAIL "Subject: Stuff";
> print MAIL "Hey!";
> close (MAIL);
> 
> that quite simply does it
> 

I dont think so. You obviously havent tried this code.

Leaving aside the fact that you didnt check the success of either of the
opens - *which is an absolute no no* - lets examine what is wrong here:

You have loaded the addresses in the file into an array then iterate over
these values without chomp()'ing thus retaining the line end character -
this will have an effect later as we will see.

$mailprog is not defined and even if it was omitted in error there is no
indication in your code *how* it was opened - if $mailprog is defined as
simply '/usr/lib/sendmail' then you are not going to achieve what you want.

Every print line except the one with the unchomped $email in lacks a
newline - so everything you print except that first line will be in one
line almost certainly not what you want - You also *must* have *two*
newlines between the end of the headers and the body of the messaage.

The '@' in your 'From:' line is not escaped and would throw an error.

I dont actually rate your approach very highly but just in case anyone has
been misled by your example lets render it correctly (ish):

#!/usr/bin/perl -w

my $mailprog = '/usr/lib/sendmail -t';

open(EMAILS,"< emails.txt") || die "Couldnt open input file - $!\n";

@emails = <EMAILS>;
close(EMAILS);

foreach $email (@emails)
  {
    chomp $email;
    open(MAIL,"| $mailprog ) || die "Couldnt run $mailprog - $!\n";
   
    print MAIL "To: $email\n";
    print MAIL "From: You\@yourhost.com\n";
    print MAIL "Subject: Stuff\n\n";
    print MAIL "Hey!\n";
    close(MAIL) || die "Error in $mailprog - $!\n";
  }
__END__

However I alluded to the fact that I dont rate this approach very highly -
especially if you are dealing with a large number of recipients where it
might overload some mail systems.

My prefered method has nothing to do with Perl whatsoever - you simply set
up a mailalias which includes your datafile (assuming you are using some
MTA such as 'sendmail' that allows you to do this) - you should read the
documentation for your mailer and then perhaps ask in some group interested
with mail matters.

An alternative is to build a comma separated list of recipients that can be
put into one of the To:, Cc:, Bcc: headers - it is probably better to place
them in the Bcc header (although in my mail processing setup this would get
rejected as spam unless I had chosen to accept mail from the sender - but hey
:).


#!/usr/bin/perl

open(EMAILS,"< email.txt" ) || die "Couldnt open infile - $!\n";
my $addresses = join "," , map {chomp;$_ } <EMAILS>;
close(EMAILS);
my $mailprog = '/usr/lib/sendmail -t';

open(MAIL,"| $mailprog") || die "Couldnt run $mailprog - $!\n";

print MAIL <<EOMESG;
Bcc: $addresses
From: You\@yourhost.com
Subject: Test

Hey!
 .
EOMESG
close(MAIL) || die "Error in $mailprog - $!\n";
__END__

Having said all of this you should really have checked out the items on
mail in perlfaq9 which covers other options available to you.

If you go spamming with this I'm gonna come after your gonads with a pair
of angry lobsters ...

/J\
-- 
Jonathan Stowe <jns@btinternet.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: 28 Dec 1998 12:44:54 GMT
From: Greg Bacon <gbacon@cs.uah.edu>
Subject: Statistics for comp.lang.perl.misc
Message-Id: <767ug6$9ck$2@info.uah.edu>

Following is a summary of articles spanning a 7 day period,
beginning at 21 Dec 1998 12:43:32 GMT and ending at
28 Dec 1998 06:28:14 GMT.

Notes
=====

    - A line in the body of a post is considered to be original if it
      does *not* match the regular expression /^\s{0,3}(?:>|:|\S+>|\+\+)/.
    - All text after the last cut line (/^-- $/) in the body is
      considered to be the author's signature.
    - The scanner prefers the Reply-To: header over the From: header
      in determining the "real" email address and name.
    - Original Content Rating (OCR) is the ratio of the original content
      volume to the total body volume.
    - Find the News-Scan distribution on the CPAN!
      <URL:http://www.perl.com/CPAN/modules/by-module/News/>
    - Please send all comments to Greg Bacon <gbacon@cs.uah.edu>.
    - Copyright (c) 1998 Greg Bacon.  All Rights Reserved.
      Verbatim copying and redistribution is permitted without royalty;
      alteration is not permitted.  Redistribution and/or use for any
      commercial purpose is prohibited.

Excluded Posters
================

perlfaq-suggestions\@mox\.perl\.com

Totals
======

Posters:  303
Articles: 740 (242 with cutlined signatures)
Threads:  270
Volume generated: 1245.6 kb
    - headers:    521.0 kb (10,601 lines)
    - bodies:     685.0 kb (21,547 lines)
    - original:   466.2 kb (15,869 lines)
    - signatures: 38.9 kb (872 lines)

Original Content Rating: 0.681

Averages
========

Posts per poster: 2.4
    median: 1 post
    mode:   1 post - 186 posters
    s:      3.9 posts
Posts per thread: 2.7
    median: 2.0 posts
    mode:   1 post - 110 threads
    s:      6.0 posts
Message size: 1723.6 bytes
    - header:     721.0 bytes (14.3 lines)
    - body:       947.8 bytes (29.1 lines)
    - original:   645.1 bytes (21.4 lines)
    - signature:  53.8 bytes (1.2 lines)

Top 10 Posters by Number of Posts
=================================

         (kb)   (kb)  (kb)  (kb)
Posts  Volume (  hdr/ body/ orig)  Address
-----  --------------------------  -------

   32    58.5 ( 21.9/ 33.1/ 22.4)  lr@hpl.hp.com (Larry Rosler)
   29    45.8 ( 17.1/ 28.6/ 18.1)  tadmc@metronet.com (Tad McClellan)
   19    31.0 ( 10.6/ 19.9/ 12.9)  clay@panix.com (Clay Irving)
   18    35.2 ( 14.6/ 16.9/ 11.9)  mgjv@comdyn.com.au (Martien Verbruggen)
   16    24.3 (  8.4/ 15.8/ 11.7)  mjd@op.net (Mark-Jason Dominus)
   16    21.9 ( 13.6/  8.3/  4.5)  bart.lateur@skynet.be (Bart Lateur)
   15    24.8 ( 13.0/ 11.8/  4.8)  abigail@fnx.com
   15    20.1 (  8.9/ 11.2/  5.2)  mjtg@cus.cam.ac.uk (M.J.T. Guy)
   13    22.4 (  8.5/ 11.2/  7.5)  Jonathan Stowe <gellyfish@btinternet.com>
   11    16.2 (  7.9/  6.3/  2.8)  comdog@computerdog.com (brian d foy)

These posters accounted for 24.9% of all articles.

Top 10 Posters by Volume
========================

  (kb)   (kb)  (kb)  (kb)
Volume (  hdr/ body/ orig)  Posts  Address
--------------------------  -----  -------

  58.5 ( 21.9/ 33.1/ 22.4)     32  lr@hpl.hp.com (Larry Rosler)
  45.8 ( 17.1/ 28.6/ 18.1)     29  tadmc@metronet.com (Tad McClellan)
  35.2 ( 14.6/ 16.9/ 11.9)     18  mgjv@comdyn.com.au (Martien Verbruggen)
  31.0 ( 10.6/ 19.9/ 12.9)     19  clay@panix.com (Clay Irving)
  26.9 (  9.3/ 16.3/  9.3)     11  rutka@lucent.com (Micha3 Rutka)
  24.8 ( 13.0/ 11.8/  4.8)     15  abigail@fnx.com
  24.3 (  8.4/ 15.8/ 11.7)     16  mjd@op.net (Mark-Jason Dominus)
  22.4 (  8.5/ 11.2/  7.5)     13  Jonathan Stowe <gellyfish@btinternet.com>
  21.9 ( 13.6/  8.3/  4.5)     16  bart.lateur@skynet.be (Bart Lateur)
  20.1 (  8.9/ 11.2/  5.2)     15  mjtg@cus.cam.ac.uk (M.J.T. Guy)

These posters accounted for 25.0% of the total volume.

Top 10 Posters by OCR (minimum of five posts)
==============================================

         (kb)    (kb)
OCR      orig /  body  Posts  Address
-----  --------------  -----  -------

0.993  (  2.5 /  2.6)      7  groovy94@aol.com (Groovy94)
0.913  (  1.4 /  1.5)      5  stevenba@ccpl.carr.org (Steven Barbash)
0.793  (  7.6 /  9.5)      8  aml@world.std.com (Andrew M. Langmead)
0.739  ( 11.7 / 15.8)     16  mjd@op.net (Mark-Jason Dominus)
0.713  (  8.4 / 11.7)     11  "Paul Makepeace" <Paul.Makepeace@POBox.com>
0.701  ( 11.9 / 16.9)     18  mgjv@comdyn.com.au (Martien Verbruggen)
0.700  (  7.5 / 10.7)      6  moseley@best.com (Bill Moseley)
0.678  ( 22.4 / 33.1)     32  lr@hpl.hp.com (Larry Rosler)
0.667  (  7.5 / 11.2)     13  Jonathan Stowe <gellyfish@btinternet.com>
0.656  (  6.6 / 10.0)      9  Uri Guttman <uri@ibnets.com>

Bottom 10 Posters by OCR (minimum of five posts)
=================================================

         (kb)    (kb)
OCR      orig /  body  Posts  Address
-----  --------------  -----  -------

0.515  (  3.1 /  6.1)      5  ptimmins@netserv.unmc.edu
0.504  (  4.6 /  9.1)      7  "AJ" <ajonsson@csi.com>
0.503  (  2.6 /  5.2)      5  "Allan M. Due" <Allan@due.net>
0.464  (  5.2 / 11.2)     15  mjtg@cus.cam.ac.uk (M.J.T. Guy)
0.458  (  1.6 /  3.5)      6  Eric Bohlman <ebohlman@netcom.com>
0.453  (  2.8 /  6.3)     11  comdog@computerdog.com (brian d foy)
0.430  (  2.5 /  5.9)      6  Uri Guttman <uri@sysarch.com>
0.404  (  4.8 / 11.8)     15  abigail@fnx.com
0.309  (  2.5 /  8.0)     11  Tk Soh <r28629@email.sps.mot.com>
0.301  (  1.8 /  6.2)      9  newsposter@cthulhu.demon.nl

32 posters (10%) had at least five posts.

Top 10 Threads by Number of Posts
=================================

Posts  Subject
-----  -------

   24  Retrospective on comp.lang.perl.moderated?
   18  Turning Variables into CAPS?
   15  Nested sorting
   14  sizeof() function?
   14  Please help me reading .csv textfiles
   13  what's wrong with this bit of code? :)
   11  challenge: 99 bottles of perl (was Re: The quine page)
   10  help with indirect reference for pattern match
   10  explain an hash assignment: $hash{'key'}++
    9  problem with $/

These threads accounted for 18.6% of all articles.

Top 10 Threads by Volume
========================

  (kb)   (kb)  (kb)  (kb)
Volume (  hdr/ body/ orig)  Posts  Subject
--------------------------  -----  -------

  47.8 ( 15.3/ 30.8/ 20.3)     15  Nested sorting
  47.6 ( 19.2/ 26.3/ 17.3)     24  Retrospective on comp.lang.perl.moderated?
  26.5 ( 13.4/ 12.8/  5.8)     18  Turning Variables into CAPS?
  24.7 ( 10.0/ 14.3/  9.5)     14  Please help me reading .csv textfiles
  21.3 (  9.7/ 10.0/  6.5)     13  what's wrong with this bit of code? :)
  20.7 (  4.3/ 15.7/ 12.2)      5  Cannot build: egcs _fails_ on 5.005_02 & NT4
  17.8 (  7.2/ 10.3/  4.3)      8  numbers in base 36
  17.0 (  9.9/  6.7/  3.9)     14  sizeof() function?
  16.6 (  8.0/  7.2/  4.1)     11  challenge: 99 bottles of perl (was Re: The quine page)
  15.4 (  6.6/  8.2/  5.3)      8  sort it ?

These threads accounted for 20.5% of the total volume.

Top 10 Threads by OCR (minimum of five posts)
==============================================

         (kb)    (kb)
OCR      orig /  body  Posts  Subject
-----  --------------  -----  -------

0.843  (  3.0/   3.5)      6  scoped references
0.815  (  3.6/   4.5)     10  help with indirect reference for pattern match
0.811  (  3.4/   4.2)      5  How to duplicate a list of lists (corrected email address)
0.801  (  4.9/   6.1)      5  Problem with Text files with my Program.
0.782  (  3.3/   4.2)      6  Win Port - AWK to Perl conversion
0.778  ( 12.2/  15.7)      5  Cannot build: egcs _fails_ on 5.005_02 & NT4
0.717  (  4.8/   6.7)      8  a nicer way?
0.688  (  3.1/   4.4)      5  $ troubles
0.675  (  4.1/   6.1)      6  rename a large file problem
0.667  (  1.4/   2.1)      5  check mail with perl

Bottom 10 Threads by OCR (minimum of five posts)
=================================================

         (kb)    (kb)
OCR      orig /  body  Posts  Subject
-----  --------------  -----  -------

0.533  (  4.1 /  7.6)      9  problem with $/
0.474  (  2.3 /  4.8)      7  Perl 5.005_002 and berkeley db problems
0.452  (  5.8 / 12.8)     18  Turning Variables into CAPS?
0.439  (  1.5 /  3.5)      5  link checker help
0.413  (  4.3 / 10.3)      8  numbers in base 36
0.400  (  2.7 /  6.8)      6  Running Perl for Win32 -- Beginner Question
0.387  (  1.6 /  4.2)      5  problem with $/ - is it a perl bug?
0.384  (  2.2 /  5.7)      6  What's wrong with this code?
0.374  (  1.1 /  2.8)      5  Newbie- Close error - Bad File Number
0.331  (  1.5 /  4.5)      9  Regex question - removing HTML tags....

40 threads (14%) had at least five posts.

Top 10 Targets for Crossposts
=============================

Articles  Newsgroup
--------  ---------

      20  comp.lang.perl.modules
      10  comp.lang.perl.moderated
       9  alt.perl
       6  comp.lang.perl
       5  comp.os.linux.misc
       4  microsoft.public.win98.pws_4
       4  microsoft.public.java.sdk
       4  comp.lang.perl.announce
       4  comp.lang.perl.tk
       3  alt.religion.kibology

Top 10 Crossposters
===================

Articles  Address
--------  -------

      14  Mick <bellears@deakin.edu.au>
       6  "Paul Chapin" <pdchapin@unix.amherst.edu>
       4  tadmc@metronet.com (Tad McClellan)
       3  mjd@op.net (Mark-Jason Dominus)
       3  Ilya <ilya@napavlly.rose.hp.com>
       3  Kamran Iranpour <kamran@norsar.no>
       3  Tom Phoenix <rootbeer&pfaq*finding*@redcat.com>
       3  fs60@rumms.uni-mannheim.de
       2  "Graham Dryden" <gdryden@sb.net>
       2  mschechter@earthlink.net (Mike Schechter)


------------------------------

Date: Mon, 28 Dec 1998 12:31:29 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: Syntactical weirdness? Or is it just me?
Message-Id: <F4oDGH.Hvr@world.std.com>

"Brandon Burt" <bb@jesusfish.xmission.com> writes:

>produces the string: "sdrawkcabbackwards", and not "backwardsbackwards"
>which seems to be the intuitive thing. While I know I shouldn't expect Perl
>to always do the intuitive thing, it makes me wonder if I'm missing a subtle
>point which might bear on other Perl-related issues.

Whenever you can track down your problem to one specific function,
probably the best thing to do is to look up that function in the
perlfunc man page.

The reverse() function is mostly for reversing the items of a list,
and creating a new in return.

   @out = reverse 'ab', 'cd', 'ef', 'gh';
   print "@out\n";

As a special feature, if used in a scalar context, it will join all of
the elements in the array and reverse the characters within the
resulting string.

   $out = reverse 'ab', 'cd', 'ef', 'gh';
   print "$out\n"; 

is the same as:

   $out = join '', reverse map { split // } 'ab', 'cd', 'ef', 'gh';
   print "$out\n";

Now lots of functions return different things between a scalar and a
list context. In your example, the print(LIST) function gives a list
context to its arguments, so you get the "@array=reverse" behavior.
Your assignment to a scalar variable, on the other hand, is of course
a scalar context. In the perlfunc man page, there is a section that says:

     Remember the following rule:

     THERE IS NO GENERAL RULE FOR CONVERTING A LIST INTO A SCALAR!

In your case, I think you learned the scalar return value of the
reverse function and didn't realize that it was the special case of
the function that returns a list.

You can fix it in your code by placing a call to the scalar() operator
to force a scalar context.

      print scalar reverse($string);

-- 
Andrew Langmead


------------------------------

Date: Mon, 28 Dec 1998 14:33:54 GMT
From: aml@world.std.com (Andrew M. Langmead)
Subject: Re: Syntactical weirdness? Or is it just me?
Message-Id: <F4oJ4I.Ds9@world.std.com>

Eric Bohlman <ebohlman@netcom.com> writes:

>  When you assign the result of reverse() to a scalar, reverse()
>takes a single scalar argument and reverses it character-by-character. 

The reverse() function still takes a list, even in a scalar
context. In a scalar context it concatinates its arguments and then
does a character by character reversal of the string.

     print scalar reverse 'ab', 'cd', 'ef', 'gh';

-- 
Andrew Langmead


------------------------------

Date: 28 Dec 1998 12:52:45 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: Usual "Hello, world" problem
Message-Id: <767uut$9p$1@gellyfish.btinternet.com>

On 28 Dec 1998 04:12:00 GMT Gregg Silk <greggsilk@aol.com> wrote:
> hey there,
> 
> OK I have been reading the FAQs and bought the gecko book, installed Perl5 on
> Win95, typed hello.plx as a text file and saved it in the same dir as perl,
> started the DOS window from Windows Explorer, type >perl hello.plx and get the
> message:
> 
> Can't open Perl script "hello.plx": no such file or directory.
> 
> If I just type >perl, the title bar of the DOS window does say Perl, so it
> seems to be working.
> 

You really need to check out the perlrun manpage - 'perldoc perlrun' - play
special attention to the -S switch if both your scripts and perl.exe are in 
your PATH.

I think that the ActiveState Perl distribution includes the script pl2bat
that will wrap your program in a batch file that can simply be run by name.

If Perl is in your PATH then you can simply change directory to that which
contains your script and then do:

C:\Somepath > perl hello.pl

An alternative is to obtain some replacement shell that actually uses the
shebang (#!) notation (also discussed in perlrun) - one that I have used
successfully with windows is the djgpp port of the GNU shell 'bash' - this
is available from <URL:http://www.delorie.com>.

/J\
-- 
Jonathan Stowe <jns@btinternet.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: Mon, 28 Dec 1998 11:29:35 GMT
From: John@melon17.freeserve.co.uk (John )
Subject: Why does my server not allow post method?
Message-Id: <36876b3b.40796235@news.freeserve.net>

When i run my cgi i get post method
not permitted type of error  message.

Why does the server i use not allow post method
and onlly allow the get method?

john


------------------------------

Date: Mon, 28 Dec 1998 08:04:51 -0500
From: comdog@computerdog.com (brian d foy)
Subject: Re: Why does my server not allow post method?
Message-Id: <comdog-ya02408000R2812980804510001@news.panix.com>

In article <36876b3b.40796235@news.freeserve.net>, John@melon17.freeserve.co.uk posted:

> When i run my cgi i get post method
> not permitted type of error  message.

could be several reasons - none of them have anything to do with Perl
though.

perhaps you meant to direct this question to 
   comp.infosystems.www.authoring.cgi?

-- 
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: 28 Dec 1998 14:13:23 -0000
From: Jonathan Stowe <gellyfish@btinternet.com>
Subject: Re: Why does my server not allow post method?
Message-Id: <7683m3$k1$1@gellyfish.btinternet.com>

On Mon, 28 Dec 1998 11:29:35 GMT John <John@melon17.freeserve.co.uk> wrote:
> When i run my cgi i get post method
> not permitted type of error  message.
> 
> Why does the server i use not allow post method
> and onlly allow the get method?
> 

I'm sorry I havent  a clue.  This however has nothing whatsoever to do with
Perl and should be taken up with the administrator of your server, the
documentation for your server, the FAQ of one of the comp.infosystems.www.*
newsgroups and finally one of those newsgroups themselves.

Whilst a lot of CGI programs may be written in Perl - the majority of Perl
is not used for CGI at all: it shouldnt be assumed that just because your
script might be written in some language that your problems are at all
related to that language - in fact generally the opposite is true, most CGI
problems are *not* related to any particular language issue.

You might check out the so-called Idiots Guide to CGI troubleshooting at:

http://www.perl.com/CPAN/doc/FAQs/cgi/idiots-guide.html

/J\
-- 
Jonathan Stowe <jns@btinternet.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: Mon, 28 Dec 1998 15:10:13 +0100
From: Michael Garstenauer <michael@mechatronik.uni-linz.ac.at>
Subject: Windows NT Installation problem
Message-Id: <36879145.1B6EAA03@mechatronik.uni-linz.ac.at>

hello everyone,

today i tried to set up perl on a windows nt server. i downloaded
cygwin32 ver 20.1 and perl 5.005. cygwin works (i compiled the usual
"hello.c" stuff, and it does what one expects, writing "Hello World!"),
but perl refuses to work. after some hacking with the hints/cygwin32.sh
i finally got the Configure script to recognise where the include files
are (it did not find them with the default setup), but now i got a
makefile that seems to be buggy. when i type "make" (step 3 out of the
install file) i get the following response:

bash-2.02$ make
make depend MAKEDEPEND=
/c: Can't open /c
make: *** [GNUmakefile] Error 2

so it seems that there is something weird going on! here is the output
of the myconfig script, perhaps anyone can get information out of it:
___________________________________

Summary of my perl5 (5.0 patchlevel 5 subversion 2) configuration:
  Platform:
    osname=cygwin32, osvers=20.1, archname=cygwin32
    uname='cygwin_nt-4.0 idefix67 20.1 (0.311) 1998-12-3 20:39:18 i686
unknown '
    hint=previous, useposix=false, d_sigaction=define
    usethreads=undef useperlio=undef d_sfio=undef
  Compiler:
    cc='gcc2', optimize='-O', gccversion=egcs-2.91.57 19980901 (egcs-1.1
release)
    cppflags=''
    ccflags =''
    stdchar='char', d_stdstdio=undef, usevfork=true
    intsize=4, longsize=4, ptrsize=4, doublesize=8
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    alignbytes=8, usemymalloc=n, prototype=define
  Linker and Libraries:
    ld='ld2', ldflags =''
    libpth=/gnuwin32/i586-cygwin32/lib /gnuwin32/lib
    libs=-lcygwin -lm -lc -lkernel32
    libc=/gnuwin32/i586-cygwin32/lib/libc.a, so=dll, useshrplib=false,
libperl=libperl.a
  Dynamic Linking:
    dlsrc=dl_cygwin32.xs, dlext=none, d_dlsymun=undef, ccdlflags=' '
    cccdlflags='-DCYGWIN32 -DDLLIMPORT ', lddlflags=' '
___________________________

thanks for any hints!

michael

_______________________________________________________________________
Michael Garstenauer
Department of Foundations of Machine Design, Univ. of Linz
mailto:michael@mechatronik.uni-linz.ac.at         ICQ:15997151




------------------------------

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 4505
**************************************

home help back first fref pref prev next nref lref last post