in reply to Beware of POSIX constants
in On Parsing Perl, because most people don't know that LOCK_SH is similarly prototyped: as a regular unprototyped function, not a constant with no parameters, so LOCK_SH / ... begins a regular expression, not a divide.use Fcntl qw(LOCK_SH);
-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.
|
|---|