bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

List of keys of an associative array


From: dnade.ext
Subject: List of keys of an associative array
Date: Fri, 31 Dec 2010 10:38:27 +0100

        Hello

For regular arrays, we can get the list of keys by using the form 
${!some_array[@]}.
But this just doesn’t work for associative arrays.

${!some_associative_array[@]} is actually 0. Is that a bug ?
Is there another way to get the list of keys available in an associative array ?

        D

--
Damien Nadé <dnade.ext@orange-ftgroup.com>
Astek Sud-Est pour France Télécom - FT/TGPF/OPF/PORTAIL/DOP/DEV/EAQS
Sophia Antipolis - France / Tel : 04 97 12 86 20



*********************************
This message and any attachments (the "message") are confidential and intended 
solely for the addressees. 
Any unauthorised use or dissemination is prohibited.
Messages are susceptible to alteration. 
France Telecom Group shall not be liable for the message if altered, changed or 
falsified.
If you are not the intended addressee of this message, please cancel it 
immediately and inform the sender.
********************************


reply via email to

[Prev in Thread] Current Thread [Next in Thread]