Main > Programming > Libraries >

NDBM_File 5.8.8

NDBM_File 5.8.8

Sponsored Links

NDBM_File 5.8.8 Ranking & Summary

RankingClick at the star to rank
Ranking Level
User Review: 0 (0 times)
File size: 12.2 MB
Platform: Any Platform
License: Perl Artistic License
Price:
Downloads: 915
Date added: 2007-05-15
Publisher: NDBM_File team

NDBM_File 5.8.8 description

NDBM_File is a Perl module that allows tied access to ndbm files.

SYNOPSIS

use Fcntl; # For O_RDWR, O_CREAT, etc.
use NDBM_File;

tie(%h, NDBM_File, filename, O_RDWR|O_CREAT, 0666)
or die "Couldnt tie NDBM file filename: $!; aborting";

# Now read and change the hash
$h{newkey} = newvalue;
print $h{oldkey};
...

untie %h;

NDBM_File establishes a connection between a Perl hash variable and a file in NDBM_File format;. You can manipulate the data in the file just as if it were in a Perl hash, but when your program exits, the data will remain in the file, to be used the next time your program runs.

Use NDBM_File with the Perl built-in tie function to establish the connection between the variable and the file. The arguments to tie should be:

The hash variable you want to tie.

The string "NDBM_File". (Ths tells Perl to use the NDBM_File package to perform the functions of the hash.)

The name of the file you want to tie to the hash.

Flags. Use one of:

O_RDONLY

Read-only access to the data in the file.

O_WRONLY

Write-only access to the data in the file.

O_RDWR

Both read and write access.

If you want to create the file if it does not exist, add O_CREAT to any of these, as in the example. If you omit O_CREAT and the file does not already exist, the tie call will fail.

The default permissions to use if a new file is created. The actual permissions will be modified by the users umask, so you should probably use 0666 here. (See "umask" in perlfunc.)

NDBM_File 5.8.8 Screenshot

Advertisements

NDBM_File 5.8.8 Keywords

Bookmark NDBM_File 5.8.8

Hyperlink code:
Link for forum:

NDBM_File 5.8.8 Copyright

WareSeeker periodically updates pricing and software information of NDBM_File 5.8.8 full version from the publisher, so some information may be slightly out-of-date. You should confirm all information before relying on it. Software piracy is theft, Using crack, password, serial numbers, registration codes, key generators is illegal and prevent future development of NDBM_File 5.8.8 Edition. Download links are directly from our publisher sites, torrent files or links from rapidshare.com, yousendit.com or megaupload.com are not allowed

Allok Video Splitter 2.2.0 Review:

Name (Required)
Email(Required)
Captcha
Featured Software

Want to place your software product here?
Please contact us for consideration.

Contact WareSeeker.com
Related Software
ODBM_File is a Perl module to allow tied access to odbm files. Free Download
FindBin is a Perl module that can locate directory of original perl script. Free Download
GDBM_File package allows Perl5 access to the gdbm library. Free Download
DirHandle is a Perl module created to supply object methods for directory handles. Free Download
B::Assembler is a Perl module created to assemble Perl bytecode. Free Download
Opcode is a Perl module created to disable named opcodes when compiling perl code. Free Download
gdbm is GNU database library for C. Free Download
Sys::Hostname is a Perl module to try every conceivable way to get hostname. Free Download