RE: passing array values into a command string

2001-05-18 Thread Wagner-David
riday, May 18, 2001 13:47 To: Wagner-David Cc: 'Jason Cruces'; [EMAIL PROTECTED] Subject: RE: passing array values into a command string On May 18, Wagner-David said: >$_ will have the carriage return as part of the name, so should do a chomp >before putting in the hash otherwise w

RE: passing array values into a command string

2001-05-18 Thread Jeff Pinyan
On May 18, Wagner-David said: >$_ will have the carriage return as part of the name, so should do a chomp >before putting in the hash otherwise would have to have the carriage rturn >as part of the testing process and I don't think you want that. So the line >right after , place a chomp. I beg t

RE: passing array values into a command string

2001-05-18 Thread Wagner-David
From: Jason Cruces [mailto:[EMAIL PROTECTED]] Sent: Friday, May 18, 2001 13:04 To: [EMAIL PROTECTED] Subject: passing array values into a command string 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

Re: passing array values into a command string

2001-05-18 Thread Timothy Kimball
Jason wrote: : while () {# read the names into a hash : $names{$_} = 1; : } Maybe do a chomp() in here? while () { chomp; $names{$_} = 1; } Otherwise, it might be trying to match the newline (which Perl retains). -- tdk

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