From: Rafael Garcia-Suarez Date: Mon, 3 Jun 2002 18:59:19 +0000 (+0000) Subject: Document that lock() is a "weak keyword". X-Git-Tag: accepted/trunk/20130322.191538~26123 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a6d5524ecde20b5db1ce867a5f7d6515a107b933;p=platform%2Fupstream%2Fperl.git Document that lock() is a "weak keyword". p4raw-id: //depot/perl@16981 --- diff --git a/pod/perlfunc.pod b/pod/perlfunc.pod index 3e5e48a..49fa800 100644 --- a/pod/perlfunc.pod +++ b/pod/perlfunc.pod @@ -2471,9 +2471,11 @@ and the month of the year, may not necessarily be three characters wide. This function places an advisory lock on a variable, subroutine, or referenced object contained in I until the lock goes out -of scope. This is a built-in function only if your version of Perl -was built with threading enabled, and if you've said C. -Otherwise a user-defined function by this name will be called. +of scope. + +lock() is a "weak keyword" : that means that if you've defined a +function by this name, this function will be called instead. +(However, if you've said C, lock() is always a keyword.) See L. =item log EXPR