Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: __DATA__ used in BEGIN

by KurtSchwind (Chaplain)
on Nov 06, 2007 at 13:18 UTC ( [id://649210]=note: print w/replies, xml ) Need Help??


in reply to __DATA__ used in BEGIN

Like others have said, you can't ref the DATA block in the BEGIN section. And a HEREDOC isn't a bad solution, but if you'd like to better seperate the logic from the code and have it in your BEGIN section, you could use a do to a seperate file that has the HEREDOC in it. This might lead to a bit of a cleaner design.
--
I used to drive a Heisenbergmobile, but everyone I looked at the speedometer, I got lost.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 06:13 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found