Perl Shell - A Solution

$prompt = '' if @ARGV || ! -t;

If we discover that the input is not interactive, we simply set the prompt to null.

Recall: