Further to what Athanasius posted: If you really want to use a lexical (i.e., my) variable, try:
Please see perlref, perlreftut.c:\@Work\Perl>perl -wMstrict -le "my $a = 25; my $ra = \$a; ;; print $ra; print $$ra; " SCALAR(0x432814) 25
Give a man a fish: <%-{-{-{-<
In reply to Re: Dereferencing a reference to a typeglob?
by AnomalousMonk
in thread Dereferencing a reference to a typeglob?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |