Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^5: Should I use carp/croak or warn/die (perl4)

by shmem (Chancellor)
on May 31, 2018 at 00:04 UTC ( [id://1215515]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Should I use carp/croak or warn/die
in thread Should I use carp/croak or warn/die

From the perl.n manpage of perl 4 patchlevel 36:

caller(EXPR)

caller Returns the context of the current subroutine call:
($package,$filename,$line) = caller;
With EXPR, returns some extra information that the debugger uses to print a stack trace. The value of EXPR indicates how many call frames to go back before the current one.
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
  • Comment on Re^5: Should I use carp/croak or warn/die (perl4)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-25 13:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found