RE: [Perl-unix-users] Life of a variable in a module

2006-01-30 Thread Thomas, Mark - BLS CTR
Carl wrote: > How can I keep > the values in the %values hash so the program doesn't > constantly access > the information from the database? our %values; Or make it an class so that you create an object in the calling program, i.e. my $tools = new Tools; $tools->table_value(...); - Mark

[Perl-unix-users] Life of a variable in a module

2006-01-30 Thread Carl Reynolds
I have a module I've written, 'Tools.pm'. One of the function in Tools.pm will look up an identifier in a table in a database and return the value for the identifier. Since the table is rather short and to keep from having to access the disk all the time, I have the function store the values in a