in reply to Re^6: STDIN from CGI object
in thread STDIN from CGI object

Try it. I rarely use |, but it doesn't look like it would work to me , which is why I recommended opening to a scalar