def _getperlincpath(self, perl, destdir):
        """
        Fetch the perl @INC path, falling back to bootstrapPerlIncPath
        only if perl cannot be run.  All elements of the search path
        will be resolved against symlinks in destdir if they exist. (CNY-2949)
        """
        if not perl:
            return []
        p = util.popen(r"""%s -e 'print join("\n", @INC)'""" %perl)
        perlIncPath = p.readlines()
        # make sure that the command completed successfully
        try:
            rc = p.close()
            perlIncPath = [x.strip() for x in perlIncPath if not x.startswith('.')]
            return [self._recurseSymlink(x, destdir)[0] for x in perlIncPath]
        except RuntimeError:
            return [self._recurseSymlink(x, destdir)[0]
                    for x in self.bootstrapPerlIncPath]