in reply to Re^2: matching POD footnote
in thread matching POD footnote

Why?

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name

Replies are listed 'Best First'.
Re^4: matching POD footnote
by anek77713 (Acolyte) on Jul 18, 2013 at 09:00 UTC

    this is an exercise

    no parsing modules allowed :(

      OK, that's a good reason.

      I was expecting you to say that you were unable to install any modules (for some reason), in which case I'd counter with the fact that Pod::Parser comes pre-installed with Perl.

      package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name
        :)
      I have to say, a very stupid exercise!

      you can only show how to write either incomplete or redundant code.

      Cheers Rolf

      ( addicted to the Perl Programming Language)

      UPDATE

      to answer AnoMonk:

      Duplicating the POD-grammar in a separate parser is practically the same sin like writing a source filter for Perl code.

      So either incomplete or redundant code, like already said!

        I have to say, a very stupid exercise! you can only show how to write incomplete or redundant code.

        And how does that make it a stupid exercise?

        Duplicating the POD-grammar in a separate parser is practically the same sin like writing a source filter for Perl code.

        So either incomplete or redundant code, like already said!

        What would you assign as an exercise to learn lexing/parsing? Would you invent a format, or would that be equally sinful?