GunghoX::FollowLinks::Rule::URI - Follow Dependig On URI
use GunghoX::FollowLinks::Rule qw(FOLLOW_ALLOW FOLLOW_DENY); use GunghoX::FollowLinks::Rule::URI; GunghoX::FollowLinks::Rule::URI->new( match => [ { action => FOLLOW_DENY, host => qr/^.+\.example\.org$/ }, { action => FOLLOW_ALLOW, host => qr/^.+\.example\.com$/ }, { action => FOLLOW_ALLOW, action_nomatch => FOLLOW_DENY, host => qr/^.+\.example\.net$/ } } ] );
This is a rule that matches against a URL using URI::Match.
To install GunghoX::FollowLinks, copy and paste the appropriate command in to your terminal.
cpanm
cpanm GunghoX::FollowLinks
CPAN shell
perl -MCPAN -e shell install GunghoX::FollowLinks
For more information on module installation, please visit the detailed CPAN module installation guide.