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.
Comment on
Re^2: How to eliminate "/n" from text
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. ^_^
[reply]
In Section
Seekers of Perl Wisdom