Skip to content

Instantly share code, notes, and snippets.

@mpeters
Created February 3, 2010 15:18
Show Gist options
  • Save mpeters/293675 to your computer and use it in GitHub Desktop.
Save mpeters/293675 to your computer and use it in GitHub Desktop.
use strict;
use warnings;
my $foo = 3;
my $ref1 = \$foo;
my $foo = 10;
my $ref2 = \$foo;
print "$$ref1";
print "$$ref2";
$$ref1++;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment