develooper Front page | perl.perl5.porters | Postings from February 2003

Re: [perl #20575] generated perlbug report

Thread Previous
From:
hv
Date:
February 9, 2003 19:43
Subject:
Re: [perl #20575] generated perlbug report
Message ID:
200302100345.h1A3jAC15724@crypt.compulink.co.uk
"John M. Dlugosz" (via RT) <perlbug-followup@perl.org> wrote:
:The documentation in the "perlrun" page says the assumed code is
:	while(<>)
:in a few places.  Deparse actually shows it as
:	while (defined($_ = <ARGV>))
:Thinking about it again, I suppose this is indeed a correct
:explaination since while(<>) expands magically itself into the
:latter.  But, I think showing the full form in the documentation
:here is better because not many people know that the 'defined' was
:added to the while-diamond magic, it can be confusing that the
:docs don't look like the results you get if you check for yourself,
:and anyone who really cares about the generated code beyond the basic
:textual description is doing something funny and telling him the
:full story is better and more immediatly useful.

Hmm, do many of the people that don't how we interpret C<< while (<>) >>
these days know how to use Deparse? And wouldn't such people find out
soon enough? While I appreciate your point, I can also see the benefit
of keeping the equivalence code as simple as possible.

I'd be inclined to leave it as it is, but I could maybe be swayed.

Hugo

Thread Previous


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About