in reply to RFC: Pod::Remove

I've at least two modules on CPAN that will break if you remove everything after __DATA__. Note also that all modules that use AutoLoader or SelfLoader will have the bulk of their code after a __DATA__ or __END__ token.

Furthermore, there's no POD in the following code:

print "Hello, =pod world =cut ";

Although your stripper would remove three lines from the code.

Abigail

Replies are listed 'Best First'.
Re: Re: RFC: Pod::Remove
by domm (Chaplain) on Mar 14, 2003 at 10:12 UTC
    I've at least two modules on CPAN that will break if you remove everything after __DATA__. Note also that all modules that use AutoLoader or SelfLoader will have the bulk of their code after a __DATA__ or __END__ token.

    Good point. So I'll leave __DATA__ and __END__ as is.

    Furthermore, there's no POD in the following code:

    print "Hello, =pod world =cut ";
    Although your stripper would remove three lines from the code.

    Another good point. I'm currently trying to get on the pod-people mailing list, but the subscriber adress seems to be broken..

    Anyway, thanks for the feedback, I'll try to get Pod::Simple to DWIM.

    -- #!/usr/bin/perl for(ref bless{},just'another'perl'hacker){s-:+-$"-g&&print$_.$/}