in reply to are TypeGlob assingments to a lexical variables possible?
use strict; sub foo { my $Href = shift; our %H; local *H = $Href; # define the alias print $H{1}; }
The downside to using local *H is that you can't access $H, @H, &H, etc in foo.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: are TypeGlob assingments to a lexical variables possible?
by cems22 (Initiate) on Sep 26, 2006 at 02:51 UTC | |
by ikegami (Patriarch) on Sep 26, 2006 at 15:08 UTC |