>perl -e "$obj = 4; $obj->test()" Can't call method "test" without a package or object reference at -e line 1.