- or download this
{
# Set the record separator to match the data.
# In this example I have a blank line between
...
First line of text
second line of text
in the third line I have 1.73205081
- or download this
$/ = "First line of text";
while (<DATA>) {
...
print "Captured ($1)\n";
}
}
- or download this
{
$/ = undef;
my $data = <DATA>;
...
print "Captured $_\n";
}
}