# use_foo_2.pl use warnings; use strict; use Foo qw(hello set_hello get_hello); hello('test -- this goes nowhere (void context)'); printf "A: from package %s during execution: '%s' \n", __PACKAGE__, get_hello; set_hello("now we're getting somewhere!"); printf "B: from package %s during execution: '%s' \n", __PACKAGE__, get_hello;