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.pmt.plpackage cucu; use strict; use Carp (); sub error { Carp::croak @_; } 1;
use strict; use cucu; ty(); sub ty { cucu::error('blabla'); }
Regards,
|
|---|