On 9/5/07, Giacomo Cerrai <[EMAIL PROTECTED]> 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.