in reply to Array named for array element?
no strict 'refs'; @{"$array[0]"} = (1, 2, 3, 4);
Having said that, why would you want to do that? In most programming languages, you can't do that, and people don't even ask how to do that. In Perl, it's not at all necessary, it's potentially dangerous, and considered bad programming style. Now that I've told you how to do it, answer my question: Why would you want to do this?
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Array named for array element?
by Anonymous Monk on Jul 02, 2003 at 21:23 UTC | |
by allolex (Curate) on Jul 02, 2003 at 22:14 UTC | |
by Anonymous Monk on Jul 03, 2003 at 15:57 UTC | |
by allolex (Curate) on Jul 04, 2003 at 07:27 UTC |