in reply to Re: Referencing the locals
in thread Referencing the locals
${'a'} is a symbolic reference. The latter is forbidden under strict, and that's a good thing, as it can easily cause all kinds of hard-to-debug chaos
Perhaps a silly question but I don't know the answer so I shall ask it anyway...
Is there ever a case to use a symbolic reference in Perl? The documentation doesn't give any hint as to why one would be needed other than to describe them as powerful.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Use case for symbolic references (was: Re^2: Referencing the locals)
by haukex (Archbishop) on Apr 28, 2021 at 21:24 UTC | |
|
Re: Use case for symbolic references (was: Re^2: Referencing the locals)
by choroba (Cardinal) on Apr 28, 2021 at 21:22 UTC | |
by LanX (Saint) on Apr 29, 2021 at 02:35 UTC | |
|
Re: Use case for symbolic references (was: Re^2: Referencing the locals)
by LanX (Saint) on Apr 29, 2021 at 02:39 UTC |