doc:appunti:prog:perl_flock
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
doc:appunti:prog:perl_flock [2011/02/26 13:44] – created niccolo | doc:appunti:prog:perl_flock [2011/02/26 13:49] – niccolo | ||
---|---|---|---|
Line 2: | Line 2: | ||
<code perl> | <code perl> | ||
+ | # | ||
+ | |||
use Fcntl ': | use Fcntl ': | ||
Line 18: | Line 20: | ||
# Now the file open and locked. | # Now the file open and locked. | ||
+ | print "File is locked!\n"; | ||
+ | sleep(20); | ||
# Unlock and close the file. | # Unlock and close the file. |
doc/appunti/prog/perl_flock.txt · Last modified: 2011/02/26 13:56 by niccolo