Help for this page
die "Method '$_' unknown to class Person";
# creating object
my $john = Person;
print "It's ", $john->('age')->(), " years-old already!!!\n";
I'm John and I am 23 years-old, but my birthday is in just 2 seconds
[two seconds pass...]
Uncaught exception from user code:
Method 'address' unknown to class Person at closure.pl line 18
main::__ANON__('address') called at closure.pl line 40
By rote learning.
Via Genetic memory.
It's provided by my firmware.
I just remember them.
Thirty days hath September
My computer gets it right, usually.
I just ask someone else.
Someone punches me on the first of the month.
Results (176 votes),