
Jasmine
Administrator
Jan 26, 2001, 10:30 AM
Post #1 of 1
(1210 views)
|
|
How can I read in a file by paragraphs?
|
Can't Post
|
|
(From the Perl FAQ) How can I read in a file by paragraphs? Use the $\ variable (see the perlvar manpage for details). You can either set it to "" to eliminate empty paragraphs ("abc\n\n\n\ndef", for instance, gets treated as two paragraphs and not three), or "\n\n" to accept empty paragraphs.
|