in reply to Perl Output

try:
while(<MYFILE>) { chomp(); print "tdnscmd \. /recordadd $_ www a 12.39.123.78\n"; }

chomp() will remove the last whitespace character in a string including the \n that are plaguing you.

Replies are listed 'Best First'.
Re: Re: Perl Output
by mikevanhoff (Acolyte) on Apr 24, 2003 at 12:29 UTC
    Thanks that did exactly what I needed.