perl: Fix evaluation on Darwin