in reply to I want to call a special xterm to execute "ls" command in a perl script
Why the heck do you want to go to all that bother. Why not use opendir, readdir, etc. Or just system with ls. There's no need to bring xterm into the mix.
-derby
In Section
Seekers of Perl Wisdom