Created
August 15, 2013 00:24
-
-
Save briandfoy/6237159 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use v5.14; | |
my $file = $ARGV[0]; | |
my $parser = Pod::TestLinks->new; | |
$parser->parse_file( $file ); | |
package Pod::TestLinks 0.14 {; | |
use strict; | |
use base 'Pod::PseudoPod'; | |
use warnings; | |
sub start_U { $_[0]->{in_U} = 1 } | |
sub end_U { $_[0]->{in_U} = 0 } | |
sub handle_text { | |
return unless $_[0]->{in_U}; | |
print "$_[1]\n"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment