Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^2: Carp croak not working when used in an imported function

by fmerges (Chaplain)
on Sep 29, 2006 at 23:25 UTC ( [id://575622]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://575622]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2024-03-29 09:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found