$dataFile = '/opt/ExportedPGPKeys/SampleData.txt'; $isEncrypted = `pgp -ea +batchmode $dataFile @sys`; print " The output value is $isEncrypted \n";