use strict;
use warnings;
use LWP::Simple;
my $URL = 'https://www.reddit.com/r/unitedkingdom/comments/58m2hs/' .
'i_daniel_blake_is_released_today/';
my $CONTENT = get($URL);
my $regex = '
' .
'
(.+?)
\s*
' .
'
';
my $x = '';
my $count = 0;
while ($CONTENT =~ m{$regex}gs)
{
$x .= $1;
++$count;
}
print $x;
print "Count: $count\n";