laziness, impatience, and hubris | |
PerlMonks |
__DATA__ in a Scriptby mvaline (Friar) |
on Dec 21, 2001 at 19:59 UTC ( [id://133784]=perlquestion: print w/replies, xml ) | Need Help?? |
mvaline has asked for the wisdom of the Perl Monks concerning the following question:
I've written a simple script to randomly print out a line from a file (it's a random error generator). I would like to store the contents of that file in the Perl script. I have investigated the use of the __DATA__ construct, but everything I've read discusses using it in a module. Is there any way to use it in a script? If so, how would that be done?
Back to
Seekers of Perl Wisdom
|
|