Hello,
FOR EACH STATEMENT trigger with plperl crash backaned. FOR EACH ROW trigger works well.
RegardsPavel Stehule