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.
In reply to Re: Perl Output
by pzbagel
in thread Perl Output
by mikevanhoff
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |