Created
September 23, 2018 08:38
-
-
Save tobyink/ea5e4f7cb4a8b0dec3f883d6cc0d189e to your computer and use it in GitHub Desktop.
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
use strict; use warnings; | |
package Point { | |
sub new { | |
bless { | |
x => 0, | |
y => 0, | |
@_, | |
}, shift; | |
} | |
sub x { shift->{x} } | |
sub y { shift->{y} } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment