Lukas Mai <lmai@mytum.de> writes: > +# Load Carp::croak on demand. > +sub _croak { > + require Carp; > + no warnings 'redefine'; > + *_croak = \&Carp::croak; > + goto &Carp::croak; > +} > + This is IMHO not worth it since Carp by itself tries to load its guts only on demand. It is also unlikely that any significant program will manage not avoid loading Carp.pm anyway. Just 'use Carp qw(croak)' and be done with it. Regards, GisleThread Previous