perl: fix compilation when multiplicity is disabled