NAME
Wallflower::Util - Utility functions for Wallflower
SYNOPSIS
use Wallflower;
use Wallflower::Util qw( links_from );
# use Wallflower to get a response array
my $wf = Wallflower->new( application => $app, destination => $dir );
my $response = $wf->get($url);
# obtain links to resources linked from the document
my @links = links_from( $response, $url );
DESCRIPTION
This modules provides methods to extract links from the files produced by Wallflower's get() method.
FUNCTIONS
links_from( $response, $url )
Returns all links found in the response body, depending on its content type.
$response is the array reference returned by Wallflower's get() method. $url is the base URI for resolving relative links, i.e. the original argument to get().
AUTHOR
Philippe Bruhat (BooK)
COPYRIGHT
Copyright 2012 Philippe Bruhat (BooK), all rights reserved.
LICENSE
This program is free software and is published under the same terms as Perl itself.