Re[6]: Finding @INC

2001-06-28 Thread Maxim Berlin

Hello Randal,

Thursday, June 28, 2001, Randal L. Schwartz [EMAIL PROTECTED] wrote:


RLS NO NO.  That doesn't work.  All of those unshifts are executed REGARDLESS
RLS of the $OS type.
[...]
Randal, thank you for your patience and examples, but please do not
explain how BEGIN works again. I know that.

RLS So, Maxim, YOU are demonstrating the very reason I would flunk your
RLS code.  It *doesn't* work!
my code is not absolytely correct, but it *works*. In
*this* case form is more important than contents for *me*.

RLS BEGIN { unshift @INC, ... } is reducible to the standard idiom
RLS of use lib ..., and should used in preference.
I understand, that beginners@ isn't right place for my example and our
discussion, but i took a part from very old (but still
working) perl script; yes, i should have checked that part before
sending, but (sigh...) nobody is perfect.
my apologies.

Best wishes,
 Maximmailto:[EMAIL PROTECTED]





Re[6]: Finding @INC

2001-06-28 Thread Peter Scott

At 02:24 AM 6/29/01 +0400, Maxim Berlin wrote:
Thursday, June 28, 2001, Randal L. Schwartz [EMAIL PROTECTED] wrote:

RLS NO NO.  That doesn't work.  All of those unshifts are executed REGARDLESS
RLS of the $OS type.
[...]
Randal, thank you for your patience and examples, but please do not
explain how BEGIN works again. I know that.

RLS So, Maxim, YOU are demonstrating the very reason I would flunk your
RLS code.  It *doesn't* work!
my code is not absolytely correct, but it *works*. In
*this* case form is more important than contents for *me*.

Your idea of working needs some revision.  Your code may produce the 
results you want, but it is structured in a way that implies you don't 
understand what it's doing, or you wouldn't have done it that way.  That's 
unhelpful to beginners in particular, and you would be well served by 
looking again to see how Randal's analysis can be used to improve your use 
of Perl.  This is not just a matter of style.  I could and would have made 
the same arguments, but Randal was faster and more articulate.

--
Peter Scott
Pacific Systems Design Technologies
http://www.perldebugged.com




Re: Re[6]: Finding @INC

2001-06-28 Thread Randal L. Schwartz

 Maxim == Maxim Berlin [EMAIL PROTECTED] writes:

Maxim Randal, thank you for your patience and examples, but please do not
Maxim explain how BEGIN works again. I know that.

No, you don't.  I'll stop here, I'm apparently beating my head
against your brick wall.

And judging from the other responses you got on this thread, I'm
not off my rocker.  One of us has additional supporters.  One of us
doesn't.  There's a big clue there.

-- 
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
[EMAIL PROTECTED] URL:http://www.stonehenge.com/merlyn/
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!