in reply to Re: how to delete part of the line?
in thread how to delete part of the line?

Where do you print the output to the output file?
why can't you use chomp on input lines?
watch other monk's replies to your post and experiment those, and chose the one which suits you.
never go by the one liner method, it is not good for large programs, monks who showed those one liners actually wanted to say that your part of the requirement can be solved easily by those methods, it is not necessary that you have to follow that one liner method in your program, just understand that logic behind the one liner, and use it carefully at appropriate places inside your program.

Vivek
-- In accordance with the prarabdha of each, the One whose function it is to ordain makes each to act. What will not happen will never happen, whatever effort one may put forth. And what will happen will not fail to happen, however much one may seek to prevent it. This is certain. The part of wisdom therefore is to stay quiet.