perl -we 'bless( \sub {}, "Foo" )->();' Not a CODE reference at -e line 1.