Is there a timeline for Perl?

I am trying to better understand the logic and flow of exceptions. Therefore, I came to the conclusion that I really felt that I did not understand how Perl interprets and runs programs, what stages are involved and what happens at each stage.

For example, I would like to understand when STD * IO are attached and when it is released, what happens to $ SIG {*}, how they depend on execepions, how the program dies, etc. I would like to better understand internal mechanics.

I am looking for links or books. I prefer material that also has visual graphics, but this is not necessary. I would like to see some kind of "big picture" of the whole process, then I already have the opportunity to dig further if I find it necessary.

I found Chapter 18 in Perl Programming gives an overview of the compilation phase, and I try to work with it, but I also appreciate other good sources.

+8
perl runtime
source share
2 answers

Some alternative sources (there are very few):

This may be more focused on what you are looking for. However, I'm not sure if any of them will explicitly indicate the execution order of the interpreter. The first of them is the best book "I want to work with this material"; two second are probably good introductory links.

Some of the questions you ask are not, as far as I know, explicitly documented - the I / O question is one of them, I canโ€™t come up with a good source, in particular. Exception handling is documented very well in the Try :: Tiny documentation, and this is what we use for exceptions. Signal processing is dirty, but perlipc documents it pretty well. You may encounter unsafe signals with threads - I generally avoid threads in favor of several processes if I should not have shared memory.

+3
source share

You can start with these themes available through the perldoc program:

Internals and C Language Interface perlembed Perl ways to embed perl in your C or C++ application perldebguts Perl debugging guts and tips perlxstut Perl XS tutorial perlxs Perl XS application programming interface perlxstypemap Perl XS C/Perl type conversion tools perlclib Internal replacements for standard C library functions perlguts Perl internal functions for those doing extensions perlcall Perl calling conventions from C perlmroapi Perl method resolution plugin interface perlreapi Perl regular expression plugin interface perlreguts Perl regular expression engine internals perlapi Perl API listing (autogenerated) perlintern Perl internal functions (autogenerated) perliol C API for Perl implementation of IO in Layers perlapio Perl internal IO abstraction interface perlhack Perl hackers guide perlsource Guide to the Perl source tree perlinterp Overview of the Perl interpreter source and how it works perlhacktut Walk through the creation of a simple C code patch perlhacktips Tips for Perl core C code hacking perlpolicy Perl development policies perlgit Using git with the Perl repository 
0
source share

All Articles