in reply to Re^3: regex to get random quote
in thread regex to get random quote
Thx, I didn't mean to switch the value of $site in this instance. I'm able to look at output with this:
#! /usr/bin/perl use warnings; use strict; use 5.010; use open ':std', OUT => ':utf8'; use HTML::TreeBuilder 5 -weak; my $site = 'http://motivationgrid.com/50-inspirational-quotes-to-live- +by/'; my $tree = HTML::TreeBuilder->new_from_url($site); foreach my $e ($tree->look_down(_tag => 'p')) { say $e->as_text; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: regex to get random quote
by Athanasius (Archbishop) on May 17, 2016 at 12:34 UTC | |
by Aldebaran (Curate) on May 21, 2016 at 06:59 UTC | |
by Athanasius (Archbishop) on May 21, 2016 at 07:33 UTC | |
by Aldebaran (Curate) on May 22, 2016 at 00:26 UTC | |
by Athanasius (Archbishop) on May 22, 2016 at 03:50 UTC |