Yes, PDD 19 can talk about 'subroutines' rather than 'compilation
units'. (I just did a quick skim of the file, and a simple search and
replace changing 'compilation unit' to 'subroutine' will work fine.)
In imcc.y, change 'compilation_unit' and 'compilation_units' to
something more general like '
# New Ticket Created by Klaas-Jan Stol
# Please include the string: [perl #49001]
# in the subject line of all future correspondence about this issue.
# http://rt.perl.org/rt3/Ticket/Display.html?id=49001 >
IMCC's top level non-terminal rule looks something like:
program: compilation_unit