Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^3: Mixing documentation and data

by tmharish (Friar)
on Feb 01, 2013 at 07:30 UTC ( #1016466=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Mixing documentation and data
in thread Mixing documentation and data

Well you cant Interpolate Perl variables in POD
Comment on Re^3: Mixing documentation and data
Replies are listed 'Best First'.
Re^4: Mixing documentation and data
by Anonymous Monk on Feb 01, 2013 at 10:13 UTC
    But you can have pod after __DATA__
      Yes but its considered part of __DATA__ :
      use strict ; use warnings ; package FOO::Messages; while(<DATA>) { print $_ ; } sub foo{} =head1 __DATA__ This is the data stuff here. =cut 1; __DATA__ data stuff here. =head1 OtherHeading Supp =cut asdfasdfasdf
      Output:
      perl pod.pl data stuff here. =head1 OtherHeading Supp =cut asdfasdfasdf
      Of course if the OP wants to parse out the POD bits then I guess this is a solution.

        That is kind of my point, why duplicate the information when you don't have to

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016466]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2016-04-30 20:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    :nehw tseb si esrever ni gnitirW







    Results (441 votes). Check out past polls.