terminating input

2001-11-02 Thread Jason Cruces
Hello all, Probably are really simple one but haven't found the answer yet. In an interactive program, where a user is prompted to enter more than one value, I would use chomp(@values = ); And to terminate the input, enter Ctrl-D (or Ctrl-Z on windows). My question is, how would I change the ter

passing array values into a command string

2001-05-18 Thread Jason Cruces
Hello all, I am working on, what I imagine to be a pretty basic problem, but am have trouble with the syntax. Here is what I need to do: I have a file with a list of object names. I have another file with a list of command strings which contain these object names. This second file contains many co

appending unique entries to a text file in perl

2001-05-04 Thread Jason Cruces
Hello, I'm pretty new to Perl and I am running into a problem that I think should be pretty easy to fix but I cannot get the syntax right. I am trying to write a script that will: 1. Open two files, one to be read from (call it file1) and another to be written to (file2) 2. Both files will contai