zsh-users
 help / color / mirror / code / Atom feed
* Writing to an indirectly named array...
@ 2012-01-01  6:09 meino.cramer
  2012-01-01  6:45 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: meino.cramer @ 2012-01-01  6:09 UTC (permalink / raw)
  To: zsh-users

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



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2012-01-01 19:17 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-01  6:09 Writing to an indirectly named array meino.cramer
2012-01-01  6:45 ` Bart Schaefer
     [not found]   ` <20120101065003.GD2920@solfire>
2012-01-01 19:16     ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).