print "Undefining foo()"; undef *foo; print "Foo is not defined" unless defined &foo;