in reply to Re: How to eliminate "/n" from text
in thread How to eliminate "/n" from text

Moreover, you can do this:

open(foo,"bar") or die;
chomp(my @baz = <FOO>);
close(foo) or die;

While intended to show another way to do chomp, the neat
thing is that you can open a file, save the contents to
an array, and then close the file.

Thanks to various people on perlmonks for helping me
learn that.

Replies are listed 'Best First'.
Re^3: How to eliminate "/n" from text
by Deib (Sexton) on Jan 05, 2005 at 01:10 UTC
    Thanks for that nice and simple way of doing it, Anonymous. :)
    I appreciate it. ^_^