our $foo_global = $foo; $obj->method_that_needs_foo_but_takes_no_params; undef $foo_global;