package Foo; { use Carp "croak"; # croak works here { package Bar; # croak does not work here } # croak works here again } # croak still works here