Murassemblade,
First of all, was this hack done on a clean UBB? IIRC, you can't execute Perl code inside a post unless you have a hack that permits this.
Second of all, if you have hacked your UBB, is the CodeButtons hack installed? If so, I'll recommend you remove it because leaving it in is a security hazard (check Bugtraq for a post by John Perceival regarding [IMG]).
Finally, what version of UBB are you using?
qasic