in reply to running an interactive only program using perl

#!/usr/bin/perl $xtlsstr = "xtlsstr"; open(XTL, "| $xtlsstr") # <-- Pipe to the program. or die("Can't run xtls: $!\n"); # <-- Check for errors. print XTL "1ax8.pdb\n"; # <-- Don't forget the \n.