Foray Into Perl Source
I uncovered some problems with @INC and require, so I dug into the perl source for the first time (well, except for some playing around before). I found the place in perl.c that was causing our @INC problems (I sitll don't know the exact solution; I have some ideas, but am not sure of the ramifications), and Simon Cozens pointed me to pp_ctl.c for pp_require, and that led me to util.c for PERL_FILE_IS_ABSOLUTE or somesuch. I am not sure what the logic should be there yet, but I put in some test code and it is working OK for now.
Anyway, it's good to get into it and play around with the code.
Anyway, it's good to get into it and play around with the code.
Leave a comment