2. Parrot::Distribution contains a subroutine called is_perl() which
presumably tests whether a file in @perl_language_files actually *is* a
Perl file.
However, I cannot locate any location where is_perl() is called.
It used to be called deep in the bowels of Parrot::Distribution before
particle++ did his fantastic job of refactoring P::D, however doesn't
seem to be used anymore. This, I'm guessing, is related to ticket
#41387 which, unfortunately, I don't have the tuits to get to atm.
Basically all files which P::D picks up as being "perl" by using the
file suffix also need to be checked to see if they have a perl shebang
line, and this is what is_perl() was used for.
I agree that the variable names can be confusing. IIRC the variable
is some kind of special parrot file object, such that one can call the
path() method on it and one obtains the full path to the file; in some
sense this was the reasoning for the name.
I don't think that helps solve the problem, but hopefully has cleared
up some confusion.
Thanks for your hard work!
Paul