Skip to content

Instantly share code, notes, and snippets.

@moritz
Created September 27, 2011 18:03
Show Gist options
  • Save moritz/1245773 to your computer and use it in GitHub Desktop.
Save moritz/1245773 to your computer and use it in GitHub Desktop.
Make POD::Block more array-like
diff --git a/src/core/Pod.pm b/src/core/Pod.pm
index db03ae5..9a9642a 100644
--- a/src/core/Pod.pm
+++ b/src/core/Pod.pm
@@ -1,7 +1,7 @@
my package Pod {
class Block {
has %.config;
- has @.content;
+ has @.content handles <atpos elems>;
}
class Block::Para is Block {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment