Skip to content

Instantly share code, notes, and snippets.

Created Aug 11, 2020
What would you like to do?
scalar reference
#!/usr/bin/env perl
use strict;
use warnings;
use feature 'say';
my $a = 1;
my $b = $a;
$b *= 10;
say $a;
my $c = \$a;
$$c *= 10;
say $a;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment