in reply to run X-application via system call?

Are you wanting to open up an xterm window to run this? If so, try the following:
use strict; use warnings; my $title = 'xterm example'; my $msg = 'press any key to continue ...'; my $exec = 'ls'; my $cmd = qq{xterm -T "$title" -e "$exec && read -p '$msg' -n1"}; my $rc = qx{$cmd};