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; }
In reply to Re: Check whether the file is in use by an other user
by wazoox
in thread Using Win32::OLE and Excel - Tips and Tricks
by cacharbe
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |