in reply to aliasing arrays using typeglob under strict
... this seemingly useful idiom for casting array refs back to arrays.
... and for creating global symbols (with the creation points buried in functions) to lie in wait to ambush your sanity during your next 3 AM debug session.
If you're not dealing with module operations (e.g., export of package variables), what would be wrong (or less useful) with using the standard lexical @$array_ref $#$array_ref $array_ref->[$index] @{ $array_ref }[ $n .. $m ] etc. dereferencing operators/operations?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: aliasing arrays using typeglob under strict
by BrowserUk (Patriarch) on Feb 08, 2013 at 03:40 UTC | |
by AnomalousMonk (Archbishop) on Feb 08, 2013 at 16:13 UTC | |
by BrowserUk (Patriarch) on Feb 08, 2013 at 16:41 UTC | |
by AnomalousMonk (Archbishop) on Feb 08, 2013 at 17:53 UTC | |
by BrowserUk (Patriarch) on Feb 08, 2013 at 18:10 UTC |