package Foo; use DBI; sub get_db_value { # this sub requires database connectivity }