Why does the following snippet work at all? And what evil might be possible using this? But seriously, is there any reason, the code in ${}
gets evaluated at all and then used as scalar reference?
use strict;
no strict 'refs';
our $message = "Hello world!";
print "${ lc 'MESSAGE' }\n";
It's ok, unless you use symbolic references. Suppose the following code:
Agree, its usefulness is not obvious with scalarrefs, but it is very useful with arrayrefs.