Skip to content

Instantly share code, notes, and snippets.

@tobyink
Created September 23, 2018 08:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tobyink/ea5e4f7cb4a8b0dec3f883d6cc0d189e to your computer and use it in GitHub Desktop.
Save tobyink/ea5e4f7cb4a8b0dec3f883d6cc0d189e to your computer and use it in GitHub Desktop.
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