szabgab/perl6-Pod-Parser/lib/Pod/Parser

perl6-Pod-Parser src

NAME

Pod::Parser - parsing files with POD in them (Perl 6 syntax)

WARNING

The generated data structure is not final yet
  use Pod::Parser;
  my $pp = Pod::Parser.new;
  my @data = $pp.parse_file('path/to/file.pod');

 
or
  my $pod = 'path/to/file.pod'.IO.slurp;
  my @data = $pp.parse($pod);

 
(head2) Example
  use Pod::Parser;
  my $pp = Pod::Parser.new;
  my @data = $pp.parse_file('path/to/file.pod');
  CATCH {
    when X::Pod::Parser {
      warn $_;
      return;
    }
  }

 

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: