According to Andreas Koenig*, under NeXTstep 3.2, both perl4.036 and perl5.000 compile with the supplied hints file.
However, Bill Eldridge* provides this message to help get perl4.036 on NeXTstep 3.0 to work:
To get perl to compile on NeXTs, you need to combine the ANSI
and BSD headers:
cd /usr/include
mkdir ansibsd
cd ansibsd
ln -s ../ansi
ln -s ../bsd
Then, follow the configuration instructions for NeXTs, replacing
all mention of -I/usr/include/ansi or -I/usr/include/bsd with
-I/usr/include/ansibsd.
Other resources at this site: