in reply to Problem in Commenting lines in perl

The problem is that $_ has a newline in it. You can remove that with chomp, and then explicitly add in a newline where you want it to in your print.
  • Comment on Re: Problem in Commenting lines in perl

Replies are listed 'Best First'.
Re^2: Problem in Commenting lines in perl
by vr786 (Sexton) on Dec 28, 2010 at 06:39 UTC

    Thanks for your response, where can i add the chomp in script , can you explain me clearly.