in reply to Re: Why do I (sometimes) get a REF ref and not a SCALAR ref? (silly)
in thread Why do I (sometimes) get a REF ref and not a SCALAR ref?
The "ARRAY" references can be dereferenced via @{ $ref }.
The "HASH" references can be dereferenced via %{ $ref }.
The "REF" references can be dereferenced via ${ $ref }.
Silly or not, but a self-circular reference can be followed ad infinitum; you never arrive at plain "SCALAR" value.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Why do I (sometimes) get a REF ref and not a SCALAR ref? (cycles)
by tye (Sage) on Jun 23, 2016 at 20:01 UTC | |
|
Re^3: Why do I (sometimes) get a REF ref and not a SCALAR ref?
by Anonymous Monk on Jun 23, 2016 at 20:03 UTC |