Help for this page
use strict; use warnings; ... die "Method '$_[0]' unknown to class Person"; } }
# creating object my $john = Person; ... print "It's ", $john->('age')->(), " years-old already!!!\n"; print $john->('address')->(); __END__
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
www.com | www.net | www.org
No recent polls found