Skip to content

Instantly share code, notes, and snippets.

@breezhang
Created April 16, 2014 13:03
Show Gist options
  • Save breezhang/10871265 to your computer and use it in GitHub Desktop.
Save breezhang/10871265 to your computer and use it in GitHub Desktop.
Symbol Table References from camel
#
#Symbol Table References
#
use feature ":5.14";
use Scalar::Util qw(refaddr);
use Data::Dumper::Concise;
my $a1 =sub {
print "...............";
};
my %h1 = qw{a 1 b 2};
*h2 = \%h1;
*a1 = \qw{a 1 b 2};
my @a1 =(1,2,3,4);
#my %a1 = qw (one 1 two 2);
#
open FH,">","C:\\temp\afile";
say Dumper *ENV{HASH};
say Dumper $a1;
say Dumper @a1;
say Dumper %a1;
say Dumper *FH{GLOB};
say Dumper *STDIN{FORMAT};
say Dumper *INC{ARRAY};
say Dumper *INC{HASH};
close FH;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment