http://www.perlmonks.org?node_id=514383


in reply to Re^3: How to sovle this, if i use strict i'm getting error.
in thread How to sovle this, if i use strict i'm getting error.

You don't actually need to change the current strictures:
use strict; sub foo { print "Foo"; } sub bar { print "bar"; } main->can("foo")->();