Re: working example File::Taill
From: Uri Guttman (uri_at_stemsystems.com)
Date: 03/22/04
- Next message: Anno Siegel: "Re: working example File::Taill"
- Previous message: Abhinav: "Re: working example File::Taill"
- In reply to: Abhinav: "Re: working example File::Taill"
- Next in thread: Abhinav: "Re: working example File::Taill"
- Reply: Abhinav: "Re: working example File::Taill"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 22 Mar 2004 14:34:36 GMT
>>>>> "A" == Abhinav <Me@myco.com> writes:
A> Couldnt this be a disadvantage in big projects, where declaring
A> criables at the top of the appropriate scope allows ppl to find *all*
A> the variabled in that *unit* in a single place, rather than strewn all
A> across .. ?
why would you want to see all the variables in one place? they are out
of context and many are in the wrong scope. use scoping at the primary
reason not to do this. then simplicity of code as the second.
how about this reason i just saw recently? i rewrote a module that had
all the variables declared at the top. and i found some that weren't
used any more. if they had been delcare when first used and then deleted
you wouldn't have that problem.
A> I understand this is a matter of style ..but still .. any inputs/comments ?
it is style sure, but the strong consensus is that it is poor style.
uri
-- Uri Guttman ------ uri@stemsystems.com -------- http://www.stemsystems.com --Perl Consulting, Stem Development, Systems Architecture, Design and Coding- Search or Offer Perl Jobs ---------------------------- http://jobs.perl.org
- Next message: Anno Siegel: "Re: working example File::Taill"
- Previous message: Abhinav: "Re: working example File::Taill"
- In reply to: Abhinav: "Re: working example File::Taill"
- Next in thread: Abhinav: "Re: working example File::Taill"
- Reply: Abhinav: "Re: working example File::Taill"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|