Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^5: Mixing documentation and data

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


in reply to Re^4: Mixing documentation and data
in thread Mixing documentation and 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.

Replies are listed 'Best First'.
Re^6: Mixing documentation and data
by Anonymous Monk on Feb 01, 2013 at 10:46 UTC

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

        Also ... Whats with remaining Anonymous Monk??

        For the honor

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1016505]
help
Chatterbox?
[runrig]: Happy Eclipse Day!
[LanX]: Once upon a time there was light in my life But now there's only Trump in the dark Nothing I can say A total eclipse of the heart

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (5)
As of 2017-08-21 23:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Who is your favorite scientist and why?



























    Results (325 votes). Check out past polls.

    Notices?