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
$_ 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:

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