[13033] in Perl-Users-Digest

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

Perl-Users Digest, Issue: 443 Volume: 9

daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Tue Aug 10 09:17:25 1999

Date: Tue, 10 Aug 1999 06:10:13 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)

Perl-Users Digest           Tue, 10 Aug 1999     Volume: 9 Number: 443

Today's topics:
        Q: perl modules: @INC, lib, loading (Goossens Kees G.W.)
        Questions about Perl/CGI scripts <Nick.Filios@ncl.ac.uk>
    Re: Reading the Online Documentation? <elaine@chaos.wustl.edu>
        search and match <chris.evans@tc.faa.gov>
    Re: sed vs. grep for string manipulation? (Anno Siegel)
    Re: Testing (Michel Dalle)
    Re: turn $6 into $6000 (Malcolm Ray)
    Re: turn $6 into $6000 <elaine@chaos.wustl.edu>
    Re: User Authentication (Alan Barclay)
    Re: Web Calendar Help.... !!! vnova94@aol.com
        why doesn't this work? <tom.kralidis@ccrs.nrcanDOTgc.ca>
        Why use Perl when we've got Python?! <I.Clarke@NOSPAM.strs.co.uk>
    Re: Why use Perl when we've got Python?! (Malcolm Ray)
    Re: Why use Perl when we've got Python?! (Matthew Bafford)
    Re: Why use Perl when we've got Python?! (Graham Ashton)
        Digest Administrivia (Last modified: 1 Jul 99) (Perl-Users-Digest Admin)

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

Date: Tue, 10 Aug 1999 11:51:47 GMT
From: goossenk@natlab.research.philips.com (Goossens Kees G.W.)
Subject: Q: perl modules: @INC, lib, loading
Message-Id: <vezwvv3am5o.fsf_-_@baza.natlab.research.philips.com>

Hello all,

I the course of perl5-ifying and modularising old perl4 software I ran into
some module problems.  As I understood perlmod the IO module should be part
of all (recent, > 5.00?) perl releases.  For some reason it was not
installed locally, so I installed it under my account.  So my first
question is: did I misunderstand the documentation?  Anyway, it took me a
while to figure out that when installing under, say, /me/lang/perl/lib
(using perl Makefile.PL PREFIX=/me/lang/perl) I have to use:

use lib ("/me/lang/perl/lib","/me/lang/perl/lib/PA-RISC1.1/5.003");
use IO:File; # for example

in my scripts. The first path is obvious, but the second makes me wonder.
If I want to write a platform- and version-independent perl script I
wouldn't want to include a hard-wired path like that.  I would have
expected /me/lang/perl/lib/<arch>/<version> to be found automatically.
Undoubtedly I'm mistaken, so could someone explain the rationale of this
organisation of modules?  (If I have overlooked documentation please point
me there.)

/me/lang/perl/lib/<module>.pm
/me/lang/perl/lib/<module>/<function>.pm
/me/lang/perl/lib/<arch>/<version>/auto/<module>/<module>.*

Thanks,
	Kees
-- 
dr. Kees Goossens <Kees.Goossens@philips.com>
Philips Research Laboratories, WLp 5.19                   Phone: +31-40-2742422
Prof. Holstlaan 4, 5656 AA Eindhoven, The Netherlands     Fax:   +31-40-2744639


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

Date: Tue, 10 Aug 1999 13:42:42 +0100
From: Nick Filios <Nick.Filios@ncl.ac.uk>
Subject: Questions about Perl/CGI scripts
Message-Id: <37B01E41.CC23271C@ncl.ac.uk>


--------------30E56127EACF880F83A3F0E7
Content-Type: text/plain; charset=iso-8859-7
Content-Transfer-Encoding: 7bit

Dear all,

I study computing science and currently work in a application which can
receive a
query from a web page and forward that query to the appropriate person.
I have some
questions that I would like to ask that may help me get on with my
project.

Do you know where could I find a perl library for parsing data from a
form?

So, I would like to ask if I could pass data from a Perl CGI script to a
another
program that will process that data. If, yes how can I do it?

Moreover, could I use one Perl/CGI script for every different HTML form
I have,
since the process will actually be the same for every form, OR do I have
to use
a separate file for each form?

There is a Unix program (sendmail) which sends an e-mail message to
someone. Is there
a way of checking an e-mail address for new messages through a CGI
script or a program?

Thank you,

--
Nick Filios
MSc Student in Computing Science
University of Newcastle
http://www.students.ncl.ac.uk/nick.filios/



--------------30E56127EACF880F83A3F0E7
Content-Type: text/html; charset=iso-8859-7
Content-Transfer-Encoding: 7bit

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
Dear all,
<P>I study computing science and currently work in a application which
can receive a
<BR>query from a web page and forward that query to the appropriate person.
I have some
<BR>questions that I would like to ask that may help me get on with my
project.
<P>Do you know where could I find a perl library for parsing data from
a form?
<P>So, I would like to ask if I could pass data from a Perl CGI script
to a another
<BR>program that will process that data. If, yes how can I do it?
<P>Moreover, could I use one Perl/CGI script for every different HTML form
I have,
<BR>since the process will actually be the same for every form, OR do I
have to use
<BR>a separate file for each form?
<P>There is a Unix program (sendmail) which sends an e-mail message to
someone. Is there
<BR>a way of checking an e-mail address for new messages through a CGI
script or a program?
<P>Thank you,
<PRE>--&nbsp;
Nick Filios
MSc Student in Computing Science
University of Newcastle
<A HREF="http://www.students.ncl.ac.uk/nick.filios/">http://www.students.ncl.ac.uk/nick.filios/</A></PRE>
&nbsp;</HTML>

--------------30E56127EACF880F83A3F0E7--



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

Date: Tue, 10 Aug 1999 07:28:38 -0400
From: Elaine -HFB- Ashton <elaine@chaos.wustl.edu>
Subject: Re: Reading the Online Documentation?
Message-Id: <37B00C96.CE659D14@chaos.wustl.edu>

I R A Darth Aggie wrote:
> + Sure you can mention that the docs are a good place to look,
> 
> Well, that *is* the beginning. If you can't read the documents, then
> trying to learn perl will be an exercise in futility and frustration.
> Usenet should be the place of last resort for answers to questions.

Usenet used to be a nice quiet place where one could ask a question and
have an intelligent reply. This has changed as the number of
idiots/assholes v. intelligent people has become askew. 

The original poster was commenting on the attitude and spirit of clpm
which has become a quagmire of jerks beating the blind with big dead
stinking fish. 
 
> + but if you know the answer give it to them, don't be a ass.
> 
> So I can insure that they'll be back tomorrow, trolling for another
> answer?

True, very true, but need you stick the hook in their eye?

And reading doesn't ensure that one will know how to spell or use the
English language properly.

e.


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

Date: Tue, 10 Aug 1999 09:01:16 -0400
From: "Christian Evans" <chris.evans@tc.faa.gov>
Subject: search and match
Message-Id: <7op7r5$pvk$1@faatcrl.faa.gov>

I have a module in a perl script that allows users to search for a record
with a field that matches a desired date.  The dates are in the format with
the first three letter of the month (i.e. Jan) followed by one OR two
spaces, and the day of the month.  How can I write the script to search for
all possible records.  I have tried many different possible choices and
can't seem to get any of them to work.

It seems as though when I search, my script will match all records with a
field with a given month, but I can't seem to match the month and the date
at the same time.

Thanks




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

Date: 10 Aug 1999 10:55:36 -0000
From: anno4000@lublin.zrz.tu-berlin.de (Anno Siegel)
Subject: Re: sed vs. grep for string manipulation?
Message-Id: <7op0f8$mqi$1@lublin.zrz.tu-berlin.de>

Donovan Rebbechi <elflord@news.newsguy.com> wrote in comp.lang.perl.misc:

>Because a lot of sed and grep wizards hang out their.

What do they hang out, and why is that a recommendation?

Anno


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

Date: Tue, 10 Aug 1999 10:52:43 GMT
From: michel.dalle@usa.net (Michel Dalle)
Subject: Re: Testing
Message-Id: <7op0dl$cvl$2@news.mch.sbs.de>

In article <7oocih$5f2$1@justice.csc.cuhk.edu.hk>, "¶ÂȘL¶w" <stupid@people.comos> wrote:
>Testing only
>

Dear abuse@cuhk.edu.hk,

you should tell your people that comp.lang.perl.misc is NOT
an appropriate place to send test messages, and refer them
to the messages in news.annnounce.newusers.

HTH,

Michel.


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

Date: 10 Aug 1999 08:35:00 GMT
From: M.Ray@ulcc.ac.uk (Malcolm Ray)
Subject: Re: turn $6 into $6000
Message-Id: <slrn7qvp1k.s13.M.Ray@carlova.ulcc.ac.uk>

On 10 Aug 1999 01:59:11 -0400, Uri Guttman <uri@sysarch.com> wrote:
>
>$money = '$6' ;
>
>$money .= '000' ;
>
>print $money ;
>
>i have always wanted to print money.

You have an Artistic Licence to print money.
-- 
Malcolm Ray                           University of London Computer Centre


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

Date: Tue, 10 Aug 1999 08:11:35 -0400
From: Elaine -HFB- Ashton <elaine@chaos.wustl.edu>
Subject: Re: turn $6 into $6000
Message-Id: <37B016A6.4582D637@chaos.wustl.edu>

Uri Guttman wrote:
> print $money ;
> 
> i have always wanted to print money.

Well, you always could...as long as you weren't counterfeiting US
currency which would grab the attention of the Secret Service. :)
Hmmm...Perl Bucks. What economy could we form with those?

e.


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

Date: 10 Aug 1999 10:31:27 GMT
From: gorilla@elaine.drink.com (Alan Barclay)
Subject: Re: User Authentication
Message-Id: <934284684.604391@elaine.drink.com>

In article <brian-ya02408000R0908992351410001@news.panix.com>,
brian d foy <brian@pm.org> wrote:
>In article <37AF3245.6657AA96@wwt.com>, Matthew Porter
><matthew.porter@wwt.com> posted:
>
>>     My question about grabbing the username and password is specific
>to Netscape
>> Enterprise Server.  How does one grab the username and password
>entered via a basic
>> authentication prompt.  Documentation shows that this is passed via
>
>it's not that simple.  you have to be able to get to the headers, which
>means you have to work with a server plug-in or soemthing.  you're out
>of luck with Perl unless you'd like to use an easy to extend server like
>Apache.

Actually there is a nsapi_perl module for Netscape, similar to the
mod_perl module for apache, which would allow access to the headers.



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

Date: Tue, 10 Aug 1999 12:51:03 GMT
From: vnova94@aol.com
Subject: Re: Web Calendar Help.... !!!
Message-Id: <7op77k$81e$1@nnrp1.deja.com>

I have looked at the FAQ, but have not found the answer to my problem.
I think my problem is that I'm not using unix.  I am running the script
on a Windows NT machine.  It is not accepting inputs.... i.e. when i
select a new month from the form, it will not advance to that form.  How
can i enable this script to run on my site.  Are there different
commands I need to substitute?

THanks,

Matt

In article <Pine.GSO.4.10.9908091501160.7774-100000@user2.teleport.com>,
  Tom Phoenix <rootbeer@redcat.com> wrote:
> On Mon, 9 Aug 1999 vnova94@aol.com wrote:
>
> > I have downloaded WebCal by Darryl Burgdorf:
> > (http://awsd.com/scripts/webcal/index.shtml)
> >
> > I cannot get this script to run correctly.....
>
> Have you complained to the author? Have you seen what the FAQ says in
> section nine, under "My CGI script runs from the command line but not
the
> browser.  Can you help me fix it?"
>
> --
> Tom Phoenix       Perl Training and Hacking       Esperanto
> Randal Schwartz Case:     http://www.rahul.net/jeffrey/ovs/
>
>


Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.


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

Date: Tue, 10 Aug 1999 08:18:01 -0400
From: Tom Kralidis <tom.kralidis@ccrs.nrcanDOTgc.ca>
Subject: why doesn't this work?
Message-Id: <37B01879.B09CA2D3@ccrs.nrcanDOTgc.ca>

Hi,

I can't get this script to work properly.  It's desgined for a huge
directory file system.  I've tested it on a smaller file structure and
it worked.  But if I try it on the intended dirs, it doesn't work.  The
files and their paths indeed exist, but the script does nothing when
invoked, returning to the prompt.

#!/public/bin/perl -w

$finalDir = "/home/user/";
chdir "$finalDir" or die "Can't cd to $finalDir: $!\n";
foreach $File (<W*/N*/*.txt>)
{
     system("/tools/util/sumfw.pl $File");
}

Any ideas?

Thanks alot

 ..Tom	
-----------------------------------------------------------------------------------------
Tom Kralidis                                  Geo-Spatial Technologist 
Canada Centre for Remote Sensing              Tel: (613) 947-1828
588 Booth Street , Room 241                   Fax: (613) 947-1408
Ottawa , Ontario K1A 0Y7                     http://www.ccrs.nrcan.gc.ca
-----------------------------------------------------------------------------------------


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

Date: Fri, 06 Aug 1999 16:10:09 +0100
From: Ian Clarke <I.Clarke@NOSPAM.strs.co.uk>
Subject: Why use Perl when we've got Python?!
Message-Id: <37AAFAD1.A032765B@NOSPAM.strs.co.uk>

I know this sounds like flame-bait, but I am genuinely curious as to
what Perl might have to offer that Python doesn't.

I have been using Python for some time now, I have occasionally looked
at perl, but was but off by its seemingly counter-intuative, and
over-complicated syntax.  I have been searching this newsgroup for a
convincing argument as to why someone would use Perl over Python.  I did
find some discussions, but the arguments from the Perl side were pretty
lame.  For example, one Perl advocate conceeded that Python was a better
language, but that people should use Perl because that is what everyone
else was using!  This is basically the argument that is always made just
before the old is replaced by something better.

Come on Perl people, you can do better than this!

Ian.


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

Date: 10 Aug 1999 10:12:49 GMT
From: M.Ray@ulcc.ac.uk (Malcolm Ray)
Subject: Re: Why use Perl when we've got Python?!
Message-Id: <slrn7qvup0.sho.M.Ray@carlova.ulcc.ac.uk>

On Fri, 06 Aug 1999 16:10:09 +0100, Ian Clarke <I.Clarke@NOSPAM.strs.co.uk>
wrote:
>I know this sounds like flame-bait, but I am genuinely curious as to
>what Perl might have to offer that Python doesn't.
>
>I have been using Python for some time now, I have occasionally looked
>at perl, but was but off by its seemingly counter-intuative, and
>over-complicated syntax.  I have been searching this newsgroup for a
>convincing argument as to why someone would use Perl over Python.  I did
>find some discussions, but the arguments from the Perl side were pretty
>lame.  For example, one Perl advocate conceeded that Python was a better
>language, but that people should use Perl because that is what everyone
>else was using!  This is basically the argument that is always made just
>before the old is replaced by something better.
>
>Come on Perl people, you can do better than this!

Sadly, people often feel a need to defend 'their' language, even when they
lack sufficient experience with 'your' language to judge it properly.
I've tinkered with Python, but never used it for any non-trivial projects,
so I wouldn't presume to pass judgement on it.  I suspect that the number
of people with substantial development experience in both languages is
much smaller than that of people who use one and have dabbled in the other.

Only you can really judge whether Perl would meet your needs better.
If you're happy with Python, then stick with it.  Take the time to learn
Perl (once you get past "those funny characters in the variable names"
it's not hard for someone with existing programming experience.  Try
rewriting some of your existing Python programs in Perl, and see how
they stack up.  Make your *own* judgement about which is better for
*your* needs, because ultimately that's the only judgement which really
matters.

OTOH, if this is just a troll to start an advocacy war, FOAD.
-- 
Malcolm Ray                           University of London Computer Centre


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

Date: Tue, 10 Aug 1999 12:09:28 GMT
From: *@dragons.duesouth.net (Matthew Bafford)
Subject: Re: Why use Perl when we've got Python?!
Message-Id: <slrn7r047k.ac5.*@dragons.duesouth.net>

Ian:
: I have been using Python for some time now, I have occasionally looked
: at perl, but was but off by its seemingly counter-intuative, and
: over-complicated syntax.

Since you've found your place in the programming world, why are you
bothering us?

We like Perl, you like Python.

: Ian.

--Matthew


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

Date: 10 Aug 1999 12:37:00 GMT
From: billynospam@mirror.bt.co.uk (Graham Ashton)
Subject: Re: Why use Perl when we've got Python?!
Message-Id: <slrn7r077d.2ua.billynospam@wing.mirror.bt.co.uk>

In article <slrn7r047k.ac5.*@dragons.duesouth.net>, Matthew Bafford wrote:
>Ian:
>: I have been using Python for some time now, I have occasionally looked
>: at perl, but was but off by its seemingly counter-intuative, and
>: over-complicated syntax.
>
>Since you've found your place in the programming world, why are you
>bothering us?
>
>We like Perl, you like Python.

Errr, no actually. You like Perl and aren't open minded enough to
discuss the merits of alternatives. some of us might like Perl, AND be
prepared to discuss it's pros and cons with a python programmer, thank
you very much.

Don't be such a big head.

-- 
Graham


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

Date: 1 Jul 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin) 
Subject: Digest Administrivia (Last modified: 1 Jul 99)
Message-Id: <null>


Administrivia:

The Perl-Users Digest is a retransmission of the USENET newsgroup
comp.lang.perl.misc.  For subscription or unsubscription requests, send
the single line:

	subscribe perl-users
or:
	unsubscribe perl-users

to almanac@ruby.oce.orst.edu.  

To submit articles to comp.lang.perl.misc (and this Digest), send your
article to perl-users@ruby.oce.orst.edu.

To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.

To request back copies (available for a week or so), send your request
to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
where x is the volume number and y is the issue number.

The Meta-FAQ, an article containing information about the FAQ, is
available by requesting "send perl-users meta-faq" from
almanac@ruby.oce.orst.edu. The real FAQ, as it appeared last in the
newsgroup, can be retrieved with the request "send perl-users FAQ" from
almanac@ruby.oce.orst.edu. 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" from
almanac@ruby.oce.orst.edu. 

For other requests pertaining to the digest, send mail to
perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
sending perl questions to the -request address, I don't have time to
answer them even if I did know the answer.


------------------------------
End of Perl-Users Digest V9 Issue 443
*************************************


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