sampleApp and a perl script to test the output