Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    File::Flock 2008.01

    Download button

    No screenshots available
    Downloads: 399  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.2/5)
    14 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    David Muir Sharnoff | More programs
    Perl Artistic License / FREE
    March 28th, 2008, 14:40 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    File::Flock description

    File::Flock is a Perl module for file locking with flock.

    File::Flock is a Perl module for file locking with flock.

    SYNOPSIS

    use File::Flock;

    lock($filename);

    lock($filename, 'shared');

    lock($filename, undef, 'nonblocking');

    lock($filename, 'shared', 'nonblocking');

    unlock($filename);

    my $lock = new File::Flock '/somefile';

    lock_rename($oldfilename, $newfilename)

    Lock files using the flock() call. If the file to be locked does not exist, then the file is created. If the file was created then it will be removed when it is unlocked assuming it's still an empty file.

    Locks can be created by new'ing a File::Flock object. Such locks are automatically removed when the object goes out of scope. The unlock() method may also be used.

    lock_rename() is used to tell File::Flock when a file has been renamed (and thus the internal locking data that is stored based on the filename should be moved to a new name). unlock() the new name rather than the original name.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    file locking | flock locking | Perl module | File::Flock | flock | file

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM