[kw-pm] __END__ and __DATA

Matt Sergeant matt at sergeant.org
Tue Aug 15 20:37:39 PDT 2006


On 15-Aug-06, at 11:13 AM, eMaki wrote:

> I don't personally ever use them in production code - I put data
> in datafiles.

Except this is a beautiful thing (on unix, at least):

   flock(DATA, 2 | 4) || die "currently running";

   ... # perl script run in cron job here

   __DATA__
   flock me baby

Oh, and I just used __DATA__ in AxKit2. Oops :-)


More information about the kw-pm mailing list