in reply to Check whether the file is in use by an other user
in thread Using Win32::OLE and Excel - Tips and Tricks
open my $fh, "/some/file" or die "can't open!"; # try/catch file locking eval { flock $fh, 'LOCK_EX' or die "can't lock!" }; if ( $@) { warn "open file!" && exit; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Check whether the file is in use by an other user
by fish (Novice) on Jul 30, 2009 at 12:42 UTC | |
by wazoox (Prior) on Jul 30, 2009 at 21:09 UTC | |
by fish (Novice) on Jul 31, 2009 at 05:51 UTC |