[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: last() dynamically scoped? (was Re: [FWP] awww, no fun :()



On Fri, Apr 13, 2001 at 02:25:48PM -0400, Mark Mielke wrote:

[Took this out of p5p into FWP again]

> In fact, "last" will not work for compiled perl programs, if memory serves
> correctly, and I see no *real* coding example of where this behaviour would
> be desirable, or proper, for good programming. A subroutine is supposed to
> be self-contained, to complete an action. It is *not* supposed to affect the
> caller, unless it is some sort of pragma, or other special operation.
> 
> I don't expect perl to change, at least in perl 5.x.
> 
> At least admit that it is unpredictable, encouraging of bad coding practices,
> and actually ill-advised to take advantage of.


But it's not very Perl like to force ones coding standards upon the
users. If you want that, please go to http://www.python.org/.

Your idea of good or proper programming are not someone elses.
Nor is good programming a goal. At best, it's one of the means.



Abigail

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe