passes strict without any form of complaint.$quiz->$act()
use strict; sub Foo::hello { shift; printf "Hello, %s!\n", shift; } my $meth = "hello"; my $class = "Foo"; $class->$meth("world");
In reply to Re: Re: Calling OO-method From A Hash
by bart
in thread Calling OO-method From A Hash
by dejoha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |