Skip to content

Instantly share code, notes, and snippets.

@tadzik
Created July 8, 2011 09:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tadzik/1071450 to your computer and use it in GitHub Desktop.
Save tadzik/1071450 to your computer and use it in GitHub Desktop.
WHY
┌─[tadzik@yavin4]─[~/src/nom] (podparser)
└─[%]─> cat ExampleModule.pm
class ExampleModule;
=begin pod
This is an example documented class
=end pod
method WHY { ~$POD[0].content }
┌─[tadzik@yavin4]─[~/src/nom] (podparser)
└─[%]─> cat foo.pl
use v6;
use ExampleModule;
say ExampleModule.WHY;
┌─[tadzik@yavin4]─[~/src/nom] (podparser)
└─[%]─> ./perl6 foo.pl
This is an example documented class
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment