Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add a procedural interface to this module

  • Loading branch information...
commit 64b5a434ae9b9056642398758047596ded213236 1 parent 9da8804
manu authored
Showing with 7 additions and 0 deletions.
  1. +7 −0 lib/HTML/Excerpt/FromXPath.pm
View
7 lib/HTML/Excerpt/FromXPath.pm
@@ -6,6 +6,13 @@ use LWP::UserAgent;
use Carp;
use HTML::TreeBuilder::XPath;
+use vars qw( @ISA @EXPORT @EXPORT_OK );
+
+use Exporter;
+@ISA = qw( Exporter );
+@EXPORT = (); # no export by default
+@EXPORT_OK = qw( scrape ); # only scrape can be exported
+
=head1 NAME
HTML::Excerpt::FromXPath - Select a part of a HTML file with an XPath expression and store it
Please sign in to comment.
Something went wrong with that request. Please try again.