Created
August 25, 2020 19:45
-
-
Save tobyink/7ea39e266d4d78410ffff0b167c97a02 to your computer and use it in GitHub Desktop.
A simple TO_JSON method
This file contains hidden or 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
| sub TO_JSON { | |
| my $self = shift; | |
| return { %$self }; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment