[PLUG] hash verses pile of scalars

Paul Heinlein heinlein at madboa.com
Thu Feb 16 17:51:59 UTC 2006


On Thu, 16 Feb 2006, Roderick A. Anderson wrote:

> What are the down side issues with using a hash to hold 
> configuration values over using a pile of scalars?

I'd use a hash so that it'd be easier to pass the whole configuration 
set to a subroutine or a foreign module. It's also convenient if you 
want to read and/or dump your configuration using a CPAN module like 
Data::Dumper or XML::Dumper.

-- 
Paul Heinlein <> heinlein at madboa.com <> www.madboa.com



More information about the PLUG mailing list