develooper Front page | perl.perl5.porters | Postings from July 2012

Re: [perl #113974] package NAMESPACE manpage comments

Thread Previous | Thread Next
Linda W
July 7, 2012 12:08
Re: [perl #113974] package NAMESPACE manpage comments
Message ID:

Leon Timmermans via RT wrote:
> On Sat, Jul 7, 2012 at 12:39 PM, Linda W <> wrote:
>> Perfectly good?
>> Your perfect maybe,
>> Why not just make use vars qw(xxx)
>> into
>> vars $one, $two;
> Why would we? Package vars is not something people should be using
> often anyway in modular Perl, having a yet another option for handling
> them seems rather superfluous. Besides, it's not like these difference
> matter in clean code anyway.
    Develop a large package across multiple files... call it unclean see 
if anyone cares.

> Because the lexical scope reduces action at a distance to something
> that's predictable, even if it's occasionally not what you want.
use package indiana; {pop context and  "our $pi=3"}
package math;
our $pi=4*atan(1,1);
package cad;

design circular structure; using $pi';

yeah, real predictable....

thanks indiana!

hey, don't say it can't happen, murphy's got at least a $20...

> Leon

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About