in reply to Re: Carp croak not working when used in an imported function
in thread Carp croak not working when used in an imported function

Hi,

Why quoting the parameter to croak? "$_[0]" -> $_[0]

I don't see the problem:

cucu.pm
package cucu; use strict; use Carp (); sub error { Carp::croak @_; } 1;
t.pl
use strict; use cucu; ty(); sub ty { cucu::error('blabla'); }

Regards,

fmerges at irc.freenode.net