Created
January 2, 2023 14:07
-
-
Save tobyink/4385b325aa65a3020cc757efb2033dbc to your computer and use it in GitHub Desktop.
:scalar, :list, and :void
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 v5.40; | |
use Local::Animal; | |
sub default_species :scalar { | |
return "Guinea Pig"; | |
} | |
my $geoffrey = Local::Animal->new( | |
name => "Geoffrey", | |
species => default_species(), | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment