Skip to content
Browse files

Add a procedural interface to this module

  • Loading branch information...
1 parent 9da8804 commit 64b5a434ae9b9056642398758047596ded213236 manu committed Apr 12, 2009
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

0 comments on commit 64b5a43

Please sign in to comment.
Something went wrong with that request. Please try again.