[ale] how to do named hash in bash

Jerry Yu jjj863 at gmail.com
Mon Mar 31 12:25:36 EDT 2008


thanks, Keith. For now,  I defined two one-dimensional arrays to emulate the
associative array (or hash).
A bit odd-looking, still better-looking than those repetitive blocks :)

On Mon, Mar 31, 2008 at 12:13 PM, Keith Hopkins <ale at hopnet.net> wrote:

> On 03/31/2008 11:20 PM, Jerry Yu wrote:
> > I  need to do named has in bash scripting, the equivalent in perl, "my
> > $hash{$key} = $value;". Can I?
>
> Bash can support one dimensional arrays, but does not natively support
> hashes.
>
> --Keith
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20080331/507ea2e4/attachment.html 


More information about the Ale mailing list