This worked. I forgot about chomping that. Thanks. -----Original Message----- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED] Sent: Thursday, August 14, 2003 1:09 PM To: Wert, Nathaniel J Cc: [EMAIL PROTECTED] Subject: Re: Chomping in wrong place...
On Aug 14, Wert, Nathaniel J said: >> open INPUT, $file or die "\n\nCan't open file $INPUT: $!\n"; That should be $file in your error message. >> while (<INPUT>) { >> $node = $_; Why don't you chomp $node here? It will have a newline at the end. while (my $node = <INPUT>) { chomp $node; system "script1 -r $db -7 $node -v 9"; } -- Jeff "japhy" Pinyan [EMAIL PROTECTED] http://www.pobox.com/~japhy/ RPI Acacia brother #734 http://www.perlmonks.org/ http://www.cpan.org/ <stu> what does y/// stand for? <tenderpuss> why, yansliterate of course. [ I'm looking for programming work. If you like my work, let me know. ] -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]