URI::Find::Rule

Simpler interface to URI::Find
Download

URI::Find::Rule Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Rob Partington
  • Publisher web site:
  • http://search.cpan.org/~rjp/

URI::Find::Rule Tags


URI::Find::Rule Description

Simpler interface to URI::Find URI::Find::Rule is a simpler interface to URI::Find.SYNOPSIS use URI::Find::Rule; # find all the http URIs in some text my @uris = URI::Find::Rule->scheme('http')->in($text); # or you can use anything that URI->can() for HTTP URIs my @uris = URI::Find::Rule->http->in($text); # find all the URIs referencing a host my @uris = URI::Find::Rule->host(qr/myhost/)->in($text);URI::Find::Rule is a simpler interface to URI::Find (closely modelled on File::Find::Rule by Richard Clamp).Because it operates on URI objects instead of the stringified versions of the found URIs, it's nicer than, say, grepping the stringified values from URI::Find::Simple's list_uris method.It returns (default) a list containing for each URI or, optionally, a list containing a URI object for each URI. Requirements: · Perl


URI::Find::Rule Related Software