I&#39;m a fan of sucking that kind of default config out of a YAML file.<br><br><div class="gmail_quote">On Mon, Nov 17, 2008 at 8:30 PM, Alec Clews <span dir="ltr">&lt;<a href="mailto:alec.clews@gmail.com">alec.clews@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">G&#39;Day Perl Bunnies,<br>
<br>
I have created a hash structure with a set of environment specific keys<br>
and values.<br>
<br>
* There is a different hash for each of the environments.<br>
<br>
* Many of the values are the same (default) across all the<br>
environments.<br>
<br>
What is the easy way of setting up the defaults once and then have each<br>
environment overwrite the default values with specific settings?<br>
<br>
Currently I have a hash of defaults. However it&#39;s a pain to define each<br>
specific value or assign the default value for every single key in every<br>
single environment.<br>
<br>
Thanks.<br>
<br>
<br>
-<br>
Alec Clews &lt;<a href="mailto:alec.clews@voga.com.au">alec.clews@voga.com.au</a>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Principal Consultant<br>
Jabber: <a href="mailto:alecclews@jabber.org.au">alecclews@jabber.org.au</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Voga Consulting Services<br>
skype: alecclews &nbsp; &nbsp; &nbsp;Voice: +61(425)770-886 &nbsp; <a href="http://www.voga.com.au/" target="_blank">http://www.voga.com.au/</a><br>
blog:<a href="http://alecthegeek.wordpress.com/" target="_blank">http://alecthegeek.wordpress.com/</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Melbourne, Australia<br>
<br>
<br>
<br>
--<br>
Alec Clews<br>
Personal &lt;<a href="mailto:alec.clews@gmail.com">alec.clews@gmail.com</a>&gt; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Melbourne, Australia.<br>
Jabber: &nbsp;<a href="mailto:alecclews@jabber.org.au">alecclews@jabber.org.au</a> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; PGPKey ID: 0x9BBBFC7C<br>
Blog &nbsp;<a href="http://alecthegeek.wordpress.com/" target="_blank">http://alecthegeek.wordpress.com/</a><br>
<br>
<br>
_______________________________________________<br>
Melbourne-pm mailing list<br>
<a href="mailto:Melbourne-pm@pm.org">Melbourne-pm@pm.org</a><br>
<a href="http://mail.pm.org/mailman/listinfo/melbourne-pm" target="_blank">http://mail.pm.org/mailman/listinfo/melbourne-pm</a></blockquote></div><br><br clear="all"><br>-- <br>Ian Macdonald<br>