Created
August 8, 2011 15:46
-
-
Save tadzik/1131995 to your computer and use it in GitHub Desktop.
This file contains 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
┌─[tadzik@yavin4]─[~/src/nom] (nom)* | |
└─[%]─> head lib/Pod/To/Text.pm | |
module Pod::To::Text; | |
our sub pod2text($pod) { | |
my @declarators; | |
given $pod { | |
when Pod::Heading { heading2text($pod) } | |
when Pod::Block::Code { code2text($pod) ~ "\n\n" } | |
when Pod::Block::Named { named2text($pod) ~ "\n" } | |
when Pod::Block::Para { para2text($pod) ~ "\n\n" } | |
when Pod::Block::Declarator { declarator2text($pod) } | |
┌─[tadzik@yavin4]─[~/src/nom] (nom)* | |
└─[%]─> ./perl6 -e 'use Pod::To::Text; Pod::To::Text::pod2text([])' | |
Could not find symbol 'Pod::To::Text::&pod2text' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment