Help for this page
package Foo; use DBI; ... { # this sub requires database connectivity }
package Bar; use Foo; ... my $value = Foo::get_db_value(); return $value * 42; }
use Bar; #something here to mock out Foo::get_db_value so that it returns a val +ue of "2" is(Bar::bar_func(), 84, "bar_func works as advertised");