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
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
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
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
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