Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Mixing documentation and data

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


in reply to Mixing documentation and data

Everything after __DATA__ is considered data.

Have you tried this:
package FOO::Messages; sub foo{} =head1 __DATA__ This is the data stuff here. =cut 1; __DATA__ data stuff here.


Comment on Re: Mixing documentation and data
Download Code
Re^2: Mixing documentation and data
by Anonymous Monk on Feb 01, 2013 at 07:26 UTC
    So you want to duplicate the data?
        But you can have pod after __DATA__
Re^2: Mixing documentation and data
by KurtZ (Beadle) on Feb 02, 2013 at 10:00 UTC
    Don't_repeat_yourself

    In software engineering, Don't Repeat Yourself (DRY) is a principle of software development aimed at reducing repetition of information of all kinds!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (7)
As of 2015-07-03 03:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (48 votes), past polls