Syntactic Confectionery Delight | |
PerlMonks |
Re: Static Data ("__DATA__" vs. "our")by tcf22 (Priest) |
on Sep 18, 2003 at 19:08 UTC ( [id://292491]=note: print w/replies, xml ) | Need Help?? |
I usually use DATA for like small templates for my script output. This is really the only time I use it in the real world. I think is just a matter of preference, and not performance, but only Benchmark can tell the truth about that.
I think the reason you see it a lot here, is that it is very easy to show what is going on when file processing questions are asked, because you can read it in like a Filehandle, but it is in the script, so you can post with the code. - Tom
In Section
Seekers of Perl Wisdom
|
|