#!/usr/bin/perl my @sitenumbers = (7,12); print "execopu -text\n"; print "cell\n"; foreach my $site_number (@sitenumbers){ print <## >perl script.pl >execopu -text #This comes from my script Enter form name: cell #The computer asks for the form name and the script populates it with "cell" and then Enter Operation: u #The computer asks for "Operation" and the script populates it with "u" and and then Enter Value: csno = $site_number