in reply to Use case for symbolic references (was: Re^2: Referencing the locals)
in thread Referencing the locals

Historically, they were probably useful, but I came to Perl when 5.6 was already there, so I don't remember them. Nowadays, strict forbids them, so the answer is "No". On the contrary, check Can you use string as a HASH ref while "strict refs" in use? on how confusing they can be.

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
  • Comment on Re: Use case for symbolic references (was: Re^2: Referencing the locals)
  • Download Code

Replies are listed 'Best First'.
Re^2: Use case for symbolic references (was: Re^2: Referencing the locals)
by LanX (Saint) on Apr 29, 2021 at 02:35 UTC
    > Nowadays, strict forbids them, so the answer is "No"

    Well except for all cases of no strict 'refs'; where the answer is "Yes". ;)

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery