#! perl -w use strict; use warnings; use mystuff; mystuff::say_hello "world"; #### #! perl -w use warnings; use strict; package mystuff; sub say_hello { print "hello " . shift() . "\n"; } 1 #### $ perl -w example.pl #### hello world
## #! perl -w use warnings; use strict; package mystuff; sub say_hello { print "hello " . shift() . "\n"; } 1 ##
## $ perl -w example.pl ##
## hello world