in reply to Re: Getting different anonymous arrays
in thread Getting different anonymous arrays
This is just a freeze/thaw way of getting back a structure which points at the same arrayref. If you built it like this:
%array = ( 'a' => ['a','b','c','d'], 'b' => ['a','b','c','d'], 'c' => ['a','b','c','d'], 'd' => ['a','b','c','d'] );
you would have four different anonymous arrays, not four refencences to the same array, as the original code created.
Not sure if this answered your question, or if I even understood it, but there you go :).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Getting different anonymous arrays
by flounder99 (Friar) on Sep 08, 2003 at 18:38 UTC |