SDBM_File Error: Argument "O_RDWR" isn't numeric in null operation

Discussion in 'Perl' started by Richard, Oct 16, 2003.

  1. Richard

    Richard Guest

    I am writing a script which accesses a DBM file using SDBM. The
    program works but throws out a warning of: -

    Argument "O_RDWR" isn't numeric in null operation

    I've included Fcntl but that doesn't solve the problem. Does anyone
    why this is happening?


    Thanks
    Richard


    use SDBM_File;
    use Fcntl;

    tie (%DB, 'SDBM_File', "fund.dbm",O_RDWR, 0644) or die "Couldn't find
    file\n";

    foreach $fund (keys %DB) {
    print $fund;
    }

    untie %DB;
     
    Richard, Oct 16, 2003
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Luther Baker

    stl::fstream O_RDWR | O_CREAT

    Luther Baker, May 19, 2004, in forum: C++
    Replies:
    2
    Views:
    704
    Luther Baker
    May 19, 2004
  2. darrel
    Replies:
    4
    Views:
    841
    darrel
    Jul 19, 2007
  3. Ulrich Raabe
    Replies:
    2
    Views:
    155
    gnari
    Jan 25, 2004
  4. yapd
    Replies:
    13
    Views:
    286
    MPBroida
    Jan 30, 2004
  5. Jim Cochrane
    Replies:
    4
    Views:
    229
    Jim Cochrane
    Oct 3, 2007
Loading...

Share This Page