in reply to "flock" is not defined in %Fcntl::EXPORT_TAGS at /usr/lib/perl5/Exporter.pm

You are looking for :flock not flock in your use Fcntl qw(:flock)

/J\

Replies are listed 'Best First'.
Re^2: "flock" is not defined in %Fcntl::EXPORT_TAGS at /usr/lib/perl5/Exporter.pm
by vivia (Initiate) on Dec 02, 2004 at 15:52 UTC
    I have Perl 5.6.0 . Line 29 of openwebmail-tool.pl reads:
    use Fcntl qw(:DEFAULT :flock);
    Any other ideas?
      Examine the code in your Fcntl.pm file. Mine contains:
      # Named groups of exports %EXPORT_TAGS = ( 'flock' => [qw(LOCK_SH LOCK_EX LOCK_NB LOCK_UN)], ...
      Possibly this tag was not defined in the version of Fcntl.pm that came with Perl 5.6.0. You could get around this various ways, such as by importing the listed symbols directly or by updating the Fcntl module.