Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
$/=undef #this you'll need to check
open FILE, "<file.txt";
$file=<FILE>;
@paras=split /\n\n/, $file;
foreach(@paras) {
print "$_";
print "="x40;
}
each paragraph in an element of the array.Code:open FILE, "file.txt"; @paras=<FILE>;
{local $/ = "\n\n";
map {chomp; print "\|$_\|\n"} <DATA>;}
__DATA__
Here is
one paragraph
of text.
This is a
second paragraph
of text.