Dear fellows
Can I alias a hash entry to a global variable? I'd like something like this to happen:
our @arr;
my %h;
somehow_alias($h{'key'}, @arr);
$h{'key'}[0,1] = qw(hello world);
print $arr[0], ' ', $arr[1], "\n";
# Desired output:
# hello world
Now that's the Y part. The X part is that I'm running user-provided subrefs in a module and would like these subs to see some fields that the $self object has without messing with the sub's parameters.
use strict; use warnings; print "Just Another Perl Hacker\n";