thanks, Keith. For now,&nbsp; I defined two one-dimensional arrays to emulate the associative array (or hash). <br>A bit odd-looking, still better-looking than those repetitive blocks :)<br><br><div class="gmail_quote">On Mon, Mar 31, 2008 at 12:13 PM, Keith Hopkins &lt;<a href="mailto:ale@hopnet.net">ale@hopnet.net</a>&gt; wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div class="Ih2E3d">On 03/31/2008 11:20 PM, Jerry Yu wrote:<br>
&gt; I &nbsp;need to do named has in bash scripting, the equivalent in perl, &quot;my<br>
&gt; $hash{$key} = $value;&quot;. Can I?<br>
<br>
</div>Bash can support one dimensional arrays, but does not natively support hashes.<br>
<br>
--Keith<br>
<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
</blockquote></div><br>