Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Writing to an indirectly named array...



Hi,

HAPPY NEW YEAR! :)


With 

    myarray=( 1 2 3 4 5 6 7 8 9 10 )
    nameofarray=myarray
    echo ${(P)nameofarray}

one can read from an array which name is given by the
contents of a variable.

But how can I write to that array the same way (via 'nameofarray') ?

Thank you very much in advance for any help! :)

Best regards,
mcc




Messages sorted by: Reverse Date, Date, Thread, Author