Created
August 11, 2020 13:02
-
-
Save tomcha/b1d9822224acbf3ea255f0fad2d2c53f to your computer and use it in GitHub Desktop.
scalar reference
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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