By using PERLIO_DEBUG variable it's possible to redirect debug output of suid application to any file. Oversized PERLIO_DEBUG causes buffer overflow.
vulners.com/securityvulns/securityvulns:doc:7750