#!/usr/bin/perlopen(TL,">test.txt");print TL ("error");close (TL);$error = grep(/error/,test.txt);printf ("ERROR %d ",$error);
Standard input is empty
ERROR 0
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!