Uri Guttman wrote:
> >>>>> "JP" == John Porter <[EMAIL PROTECTED]> writes:
> 
>   JP> Maybe what's needed is two distinct perl pod processor types, one
>   JP> which passes on the text literally to the compiler, and one which
>   JP> wraps it up like a string literal.
> 
>   JP>         print
> 
>   JP>         =for perl-string pod
>   JP>         Help is on the way.
> 
>   JP>         ;
> 
> and how will perl know that is a string? 

While I'm not necessarily saying it's a great solution, the answer
to your question is simple; the special "perl-string" pod processor
-- which is active in the perl compiler's input stream -- sees such
a construct and converts into a q() string literal.

It requires some machinery in the perl parser, for sure.


>       print <<=POD ;
> this is help for pod and code
> =POD

I like this.  It also requires some machinery in the pod processor.


> the two goals of code in pod and pod in data are not the same and
> probably won't use the same mechanisms. all i want is pod in perl
> strings and that is nothing like having perl code be seen by pod as
> well.

Yup.

-- 
John Porter

        Aus tiefem Traum bin ich erwacht.

Reply via email to