[18356] in Perl-Users-Digest
Perl-Users Digest, Issue: 524 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Mon Mar 19 00:10:42 2001
Date: Sun, 18 Mar 2001 21:10:12 -0800 (PST)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Message-Id: <984978611-v10-i524@ruby.oce.orst.edu>
Content-Type: text
Perl-Users Digest Sun, 18 Mar 2001 Volume: 10 Number: 524
Today's topics:
Re: Why do "Learning Perl" Books Do This? A Subroutine <mjcarman@home.com>
Re: Why do "Learning Perl" Books Do This? A Subroutine <callgirl@la.znet.com>
Re: Why do "Learning Perl" Books Do This? A Subroutine <bankview1@[remove to send email]nucleus.com>
Re: Why do "Learning Perl" Books Do This? A Subroutine (Tad McClellan)
Re: Why do "Learning Perl" Books Do This? A Subroutine <mjcarman@home.com>
Re: Why do "Learning Perl" Books Do This? A Subroutine <uri@sysarch.com>
Re: Why do "Learning Perl" Books Do This? A Subroutine (Tad McClellan)
Re: write privilege for script. (Tad McClellan)
Re: write privilege for script. <chrisw@dynamite.com.au>
Re: write privilege for script. <amskape@ev1.net>
Re: write privilege for script. (Tad McClellan)
Digest Administrivia (Last modified: 16 Sep 99) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Mon, 19 Mar 2001 02:16:05 GMT
From: Michael Carman <mjcarman@home.com>
Subject: Re: Why do "Learning Perl" Books Do This? A Subroutine Question.
Message-Id: <3AB56C3A.C5D63022@home.com>
Abigail wrote:
>
> Michael Carman (mjcarman@home.com) wrote:
> || The general consensus here for Perl books is don't buy
> || anything that doesn't say O'Reilly on it.
>
> That's not the general consensus at all.
Well, my observations of this newgroup have been that Learning Perl et
al. published by O'Reilly are well-respected. Every other book I've seen
mentioned here has been chastised (with good reason).
> There are better Perl books out there than most of the
> ORA books on Perl.
Great! Care to share what they are with the rest of us?
-mjc
------------------------------
Date: Sun, 18 Mar 2001 18:37:29 -0800
From: Kira <callgirl@la.znet.com>
Subject: Re: Why do "Learning Perl" Books Do This? A Subroutine Question.
Message-Id: <3AB570E9.CC2FE95@la.znet.com>
Michael Carman wrote:
> Abigail wrote:
> > Michael Carman wrote:
> > || The general consensus here for Perl books is don't buy
> > || anything that doesn't say O'Reilly on it.
> > That's not the general consensus at all.
> Well, my observations of this newgroup have been that Learning Perl et
> al. published by O'Reilly are well-respected. Every other book I've seen
> mentioned here has been chastised (with good reason).
> > There are better Perl books out there than most of the
> > ORA books on Perl.
> Great! Care to share what they are with the rest of us?
_Effective Perl Programming_ written by Joseph N. Hall, an
infrequent visitor here, is a very good book. Randal is
featured in this book. It is published by Addison Wesley.
Effective Perl Programming
Hall, Joseph N. with Randal L. Schwartz
1998
Addison Wesley Longman, Inc. Mass.
ISBN 0-201-41975-0
This book is printed on recycled acid free alkaline paper.
* thumbs up *
Although intended for advanced programmers, there is something
to learn for all skill levels. For a technical journalist,
Joseph Hall's writing style is very good, darn good actually.
His convention parameters and introductory documentation are
excellent, significantly better than any ORA books I have.
Hall's book is exceptionally well organized and his indexes
are well done. His book, overall, out-shines any ORA book.
Only reservation I have is I wish Hall would write more books.
Godzilla!
------------------------------
Date: Mon, 19 Mar 2001 02:32:16 GMT
From: "Radicator" <bankview1@[remove to send email]nucleus.com>
Subject: Re: Why do "Learning Perl" Books Do This? A Subroutine Question.
Message-Id: <Qcet6.34096$tr5.4059027@news1.telusplanet.net>
Ooops!
I did leave out one line and that was the subroutine declaration:
Here, totally double-checked, is the code in the book (line 4 below is what
I left out):
1 #!/usr/bin/perl
2
3 print DisplayMessage("Please wait..", 4);
4 sub DisplayMessage
5 {
6 for ($x = 0; $x <= $_[1]; $x++)
7 {
8 $temp = $temp . $_[0] . "\n";
9 }
10 return $temp;
11 }
Next time I'll copy and paste but I'll have to install the CD that
came with the book first.
The book doesn't use -w or strict which I thought was a bit lax
especially for a beginner's Perl text.
I should also apologize for my choice of words . . . I do understand
that the equal sign " = " is an assignment operator, and that $temp . $_[0]
. "\n" was being *assigned* to the variable $temp.
Thank you's to Bart, Joe, Uri, Tad & Michael (sorry if I left someone out),
your explanations, warnings, and recommendations for what to do with this
book I have were great :)
D.
------------------------------
Date: Sun, 18 Mar 2001 21:22:01 -0500
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: Why do "Learning Perl" Books Do This? A Subroutine Question.
Message-Id: <slrn9bara9.2ju.tadmc@tadmc26.august.net>
Michael Carman <mjcarman@home.com> wrote:
>Abigail wrote:
>>
>> Michael Carman (mjcarman@home.com) wrote:
>> || The general consensus here for Perl books is don't buy
>> || anything that doesn't say O'Reilly on it.
>>
>> That's not the general consensus at all.
>
>Well, my observations of this newgroup have been that Learning Perl et
>al. published by O'Reilly are well-respected. Every other book I've seen
^^^^^^^^^^^^^^^^
>mentioned here has been chastised (with good reason).
So then you must have missed the articles mentioning:
"Object Oriented Perl" Damian Conway (Manning)
"Elements of Programming with Perl" Andrew Johnson (Manning)
"Effective Perl Programming" Joseph Hall (Addison-Wesley)
"Perl: The Programmer's Companion" Nigel Chapman (John Wiley and Sons)
all also highly regarded.
>> There are better Perl books out there than most of the
>> ORA books on Perl.
>
>Great! Care to share what they are with the rest of us?
See above :-)
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Mon, 19 Mar 2001 04:13:04 GMT
From: Michael Carman <mjcarman@home.com>
Subject: Re: Why do "Learning Perl" Books Do This? A Subroutine Question.
Message-Id: <3AB587A6.1D663595@home.com>
Tad McClellan wrote:
>
> Michael Carman <mjcarman@home.com> wrote:
>>
>> [M]y observations of this newgroup have been that Learning Perl
>> et al. published by O'Reilly are well-respected. Every other
>> book I've seen mentioned here has been chastised (with good
>> reason).
>
> So then you must have missed the articles mentioning:
>
> "Object Oriented Perl" Damian Conway (Manning)
> "Elements of Programming with Perl" Andrew Johnson (Manning)
> "Effective Perl Programming" Joseph Hall (Addison-Wesley)
> "Perl: The Programmer's Companion" Nigel Chapman (John Wiley
> and Sons)
>
> all also highly regarded.
*sigh* I've got to start paying more attention to publishers. :/
Better yet, I'll give up my budding career as a literary critic.
Thanks for the tip; all have been added to my list of things to check
out the next time I'm at the bookstore.
-mjc
------------------------------
Date: Mon, 19 Mar 2001 04:21:59 GMT
From: Uri Guttman <uri@sysarch.com>
Subject: Re: Why do "Learning Perl" Books Do This? A Subroutine Question.
Message-Id: <x7wv9m4cd2.fsf@home.sysarch.com>
>>>>> "R" == Radicator <bankview1@[remove to send email]nucleus.com> writes:
R> Next time I'll copy and paste but I'll have to install the CD that
R> came with the book first.
if you learn nothing else from this thread, that is a good lesson. we
have seen too many newbies who retype code incorrectly and then don't
get why they are flamed for it. code is too precise an entity to allow
typos in.
R> The book doesn't use -w or strict which I thought was a bit lax
R> especially for a beginner's Perl text.
very true. a major reason to throw it out. there has been debate on
using them in production code (i am totally in favor of that), but
beginners should always use them.
R> I should also apologize for my choice of words . . . I do
R> understand that the equal sign " = " is an assignment operator, and
R> that $temp . $_[0] . "\n" was being *assigned* to the variable
R> $temp.
well, that was never made clear. you were writing as if = was a
comparison operator.
uri
--
Uri Guttman --------- uri@sysarch.com ---------- http://www.sysarch.com
SYStems ARCHitecture, Software Engineering, Perl, Internet, UNIX Consulting
The Perl Books Page ----------- http://www.sysarch.com/cgi-bin/perl_books
The Best Search Engine on the Net ---------- http://www.northernlight.com
------------------------------
Date: Sun, 18 Mar 2001 22:58:00 -0500
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: Why do "Learning Perl" Books Do This? A Subroutine Question.
Message-Id: <slrn9bb0u8.3dt.tadmc@tadmc26.august.net>
Michael Carman <mjcarman@home.com> wrote:
>Tad McClellan wrote:
>>
>> Michael Carman <mjcarman@home.com> wrote:
>>>
>>> [M]y observations of this newgroup have been that Learning Perl
>>> et al. published by O'Reilly are well-respected. Every other
>>> book I've seen mentioned here has been chastised (with good
>>> reason).
>>
>> So then you must have missed the articles mentioning:
>>
>> "Object Oriented Perl" Damian Conway (Manning)
>> "Elements of Programming with Perl" Andrew Johnson (Manning)
>> "Effective Perl Programming" Joseph Hall (Addison-Wesley)
>> "Perl: The Programmer's Companion" Nigel Chapman (John Wiley
>> and Sons)
>>
>> all also highly regarded.
>
>*sigh* I've got to start paying more attention to publishers. :/
>Better yet, I'll give up my budding career as a literary critic.
>
>Thanks for the tip; all have been added to my list of things to check
>out the next time I'm at the bookstore.
The astute reader will note how short the list of acceptable
non-O'Reilly Perl books is (I'm sure I've missed a few).
So your claim was acceptable within a reasonable amount of variance :-)
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Sun, 18 Mar 2001 21:29:28 -0500
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: write privilege for script.
Message-Id: <slrn9baro8.2ju.tadmc@tadmc26.august.net>
AmSkape <amskape@ev1.net> wrote:
>I have a perl script that is accessed from a web interface. It was
>written to allow a site administrator to make changes on certain web
>pages. But the web pages are in a directory that does not allow regular
>web users write priveleges. How can allow the script write priveleges to
>the directory without leaving the directory writable for everyone? By
>the way, I'm using a IIS4.0 server.
What is your Perl question?
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: Mon, 19 Mar 2001 14:28:34 +1100
From: "Chris W" <chrisw@dynamite.com.au>
Subject: Re: write privilege for script.
Message-Id: <rpft6.10$bF1.146574@news.interact.net.au>
"AmSkape" <amskape@ev1.net> wrote in message
news:3AB55AB0.139BE86E@ev1.net...
> I have a perl script that is accessed from a web interface. It was
> written to allow a site administrator to make changes on certain web
> pages. But the web pages are in a directory that does not allow regular
> web users write priveleges. How can allow the script write priveleges to
> the directory without leaving the directory writable for everyone? By
> the way, I'm using a IIS4.0 server.
So, this is a Windows NT dile/directory permissions question and has
precisely _nothing_ to do with Perl. Using an appropriate NG is sopmething
to consider for your next question.
Nevertheless, IIS runs by default with an effective user name of
IUSR_computername and it is this user that needs permission. See the
section of the IIS manual covering Securing Your IIS Server.
------------------------------
Date: Sun, 18 Mar 2001 21:56:48 -0600
From: AmSkape <amskape@ev1.net>
To: tadmc@augustmail.com
Subject: Re: write privilege for script.
Message-Id: <3AB58380.8EDE3F93@ev1.net>
What would I do in the webpage/script to make the make the server recognize
that the script has the privileges to write to a directory which cannot
otherwise be written to by ordinary web users. In other words, I am looking
for advice on a user authentication solution that will acquire write
privileges for my perl script. Your question suggests to me that it can
perhaps be accomplished outside the script. Am I right? I am a newbie. Please
bear with the ignorance.
Tad McClellan wrote:
> AmSkape <amskape@ev1.net> wrote:
> >I have a perl script that is accessed from a web interface. It was
> >written to allow a site administrator to make changes on certain web
> >pages. But the web pages are in a directory that does not allow regular
> >web users write priveleges. How can allow the script write priveleges to
> >the directory without leaving the directory writable for everyone? By
> >the way, I'm using a IIS4.0 server.
>
> What is your Perl question?
>
> --
> Tad McClellan SGML consulting
> tadmc@augustmail.com Perl programming
> Fort Worth, Texas
------------------------------
Date: Sun, 18 Mar 2001 23:09:44 -0500
From: tadmc@augustmail.com (Tad McClellan)
Subject: Re: write privilege for script.
Message-Id: <slrn9bb1k8.3dt.tadmc@tadmc26.august.net>
[ Please put your comments *following* the quoted text that you
are commenting on.
Please do not quote entire articles.
Please never quote .sigs.
Please visit: http://www.geocities.com/nnqweb/nquote.html
Thanks.
]
[
Please do not send stealth Ccs. I will have to killfile
you if you do it again.
]
AmSkape <amskape@ev1.net> wrote:
>Tad McClellan wrote:
>> AmSkape <amskape@ev1.net> wrote:
>> >I have a perl script that is accessed from a web interface. It was
>> >written to allow a site administrator to make changes on certain web
>> >pages. But the web pages are in a directory that does not allow regular
>> >web users write priveleges. How can allow the script write priveleges to
>> >the directory without leaving the directory writable for everyone? By
>> >the way, I'm using a IIS4.0 server.
>>
>> What is your Perl question?
>>
>What would I do in the webpage/script to make the make the server
Nothing, hence it is not a Perl question.
>recognize
>that the script has the privileges to write to a directory which cannot
>otherwise be written to by ordinary web users.
Sounds like a web server question. You should ask in a web server
newsgroup such as:
comp.infosystems.www.servers.mac
comp.infosystems.www.servers.misc
comp.infosystems.www.servers.ms-windows
comp.infosystems.www.servers.unix
or maybe in:
comp.infosystems.www.authoring.cgi
>In other words, I am looking
>for advice on a user authentication solution
User authentication is handled at the server level, not at the
programming language level. You have a server setup question.
Perl does not _have_ a server, so talking about servers in the
Perl newsgroup is probably not on-topic.
>that will acquire write
>privileges for my perl script. Your question suggests to me that it can
>perhaps be accomplished outside the script. Am I right?
^^^^^^^
Not perhaps. Must.
So you do not have a Perl question.
> I am a newbie. Please
>bear with the ignorance.
Have you tried typing this yet:
perldoc -q CGI
In particular, this Perl Frequently Asked Question
"Where can I learn about CGI or Web programming in Perl?"
might help you to be able to partition the problem more effectively.
--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas
------------------------------
Date: 16 Sep 99 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 16 Sep 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.
| NOTE: The mail to news gateway, and thus the ability to submit articles
| through this service to the newsgroup, has been removed. I do not have
| time to individually vet each article to make sure that someone isn't
| abusing the service, and I no longer have any desire to waste my time
| dealing with the campus admins when some fool complains to them about an
| article that has come through the gateway instead of complaining
| to the source.
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.
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 V10 Issue 524
**************************************