use strict; use warnings; print "hello world\n"; foo(); #### $perl func.pl hello world Undefined subroutine &main::foo called at func.pl line 6.