thanks, Keith. For now, 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 <<a href="mailto:ale@hopnet.net">ale@hopnet.net</a>> 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>
> I need to do named has in bash scripting, the equivalent in perl, "my<br>
> $hash{$key} = $value;". 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>