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
$_ 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.
Wags ;)
-Original Message-
From:
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