Skip to content

Instantly share code, notes, and snippets.

@tadzik
Created July 5, 2011 10:12
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tadzik/1064604 to your computer and use it in GitHub Desktop.
Fun with $POD
┌─[tadzik@yavin4]─[~/src/nom] (podparser)
└─[%]─> cat foo.pl
use v6;
=begin pod
foo bar asd
=end pod
=begin otherpod
nom nom nom
=end otherpod
say $POD.perl;
say $POD[0].name.perl;
say $POD[0].content.perl;
say $POD[1].name.perl;
say $POD[1].content.perl;
┌─[tadzik@yavin4]─[~/src/nom] (podparser)
└─[%]─> ./perl6 foo.pl
Array.new(Pod__Block__Named<28720320>, Pod__Block__Named<82308800>)
"pod"
Array.new("foo bar asd\n")
"otherpod"
Array.new("nom nom nom\n")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment