awohld has asked for the wisdom of the Perl Monks concerning the following question:
cell u csno = 7 ccuoosmin_3g1x = "" ccuoos_3g1x = "" u u csno = 12 ccuoosmin_3g1x = "" ccuoos_3g1x = "" u
#!/usr/bin/perl my @sitenumbers = (7,12); open(EXECOPU, '| execopu -text') or die("Can't run execopu: $!\n"); print EXECOPU "cell\n"; foreach my $site_number (@sitenumbers){ print EXECOPU <<"EOF"; u csno = $site_number ccuoosmin_3g1x = "" ccuoos_3g1x = "" u EOF }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Redirect Unix Input Within Perl
by ikegami (Patriarch) on Apr 20, 2005 at 14:36 UTC | |
|
Re: Redirect Unix Input Within Perl
by polettix (Vicar) on Apr 20, 2005 at 14:41 UTC | |
by awohld (Hermit) on Apr 20, 2005 at 18:00 UTC | |
|
Re: Redirect Unix Input Within Perl
by gellyfish (Monsignor) on Apr 20, 2005 at 14:36 UTC | |
by awohld (Hermit) on Apr 20, 2005 at 14:46 UTC |