open(OUT,"|$pipe") or error "Cannot open Ghostscript for piped input"; ... my $pos = tell(OUT)+length($_); Thanks for the report. I hope epstopdf will be improved in this regard soon. For some reason there have been several reports about this exact issue recently. Best, Karl