[Boulder.pm] Boulder-pm Digest, Vol 39, Issue 11
Kate Lynde
rise at knavery.net
Thu Aug 23 12:24:48 PDT 2012
While we're on the topics of filehandles and things not to do, never
use a lock on the DATA filehandle (the __DATA__ section of your
program) to make sure only one copy is running. It looks like a neat
hack and there's even a CPAN module for it, but it's non-portable and
even on Unix variants it fails in all sorts of strange ways. In fact
forget about ever locking that file handle for any purpose, there's
just no good reason. Just... don't.
--
Kate Lynde
More information about the Boulder-pm
mailing list