logo       
Google Custom Search
    AddThis Social Bookmark Button

Re: Module Proposal: Package::Data::Inheritable: msg#00012

Subject: Re: Module Proposal: Package::Data::Inheritable
On 9/5/07, Giacomo Cerrai <giantolo@xxxxxxxx> wrote:
> The set of fields a statement works on is not always the same.
> Notice that the fields passed to foo() and the fields used in the
> foreach are different.

Actually in your case I would probably suggest using constants.

use const PI => 3.14159;

These have the advantage of being inlined when the Perl code is being
compiled, so that's the ultimate in performance.  Variables are, well,
variable.  If these values are immutable they should be constants
anyway.

You could have an array of various different constants for different purposes.




Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>