Juman::GDBM_File(3pm)

NAME
Juman::GDBM_File - Wrapper class of GDBM_File

SYNOPSIS
 use Juman::GDBM_File;
 use encoding "euc-jp";
 tie( %hash, 'Juman::GDBM_File', $dbfile, &GDBM_WRCREAT, 0640 ) or die;
 $hash{"æ·»å—"} = "å€¤";
 while( my( $key, $value ) = each %hash ){
     print "$key:$value\n";
 }

DESCRIPTION
Perl-5.8.x ã�¯å†…éƒ¨æ–‡å—ã‚³ãƒ¼ãƒ‰ã�¨ã�—ã�¦ Unicode ã‚’æŽ¡ç”¨ã�—ã�¦ã�„ã‚‹ï¼Žã��ã�®ã�Ÿã‚�ï¼Œæ—¥ æœ¬èªž EUC ã�§è¨˜è¿°ã�•ã‚Œã�Ÿãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ã‚’å�‚ç…§ã�™ã‚‹å ´å�ˆã�«ã�¯ï¼Œæ·»å—ã‚„å€¤ ã‚’æ›¸ã��è¾¼ã‚“ã� ã‚Šï¼Œèªã�¿å‡ºã�—ã�Ÿã‚Šã�™ã‚‹å‰�ã�«ï¼Œå¸¸ã�«æ˜Žç¤ºçš„ã�« encode/decode ã‚’è¡Œ ã�†å¿…è¦�ã�Œã�‚ã‚‹ï¼Ž

ã�“ã�® "Juman::GDBM_File" ã‚¯ãƒ©ã‚¹ã�¯ï¼Œç‰¹å®šã�®æ–‡å—ã‚³ãƒ¼ãƒ‰ã�§ä¿�å˜ã�•ã‚Œã�¦ã�„ã‚‹ãƒ‡ãƒ¼ ã‚¿ãƒ™ãƒ¼ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ã‚’æ‰±ã�†ã�Ÿã‚�ã�«ï¼Œé€�é�Žçš„ã�« encode/decode ã‚’è¡Œã�†ï¼Ž

ENCODING
ã�“ã�®ã‚¯ãƒ©ã‚¹ã‚’åˆ©ç”¨ã�™ã‚‹æ™‚ã�¯ï¼Œãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã�¨ã�®å…¥å‡ºåŠ›æ™‚ã�«ä½¿ã�†æ–‡å—ã‚³ãƒ¼ãƒ‰ã‚’ï¼Œ "encoding" ãƒ—ãƒ©ã‚°ãƒžã�§æŒ‡å®šã�™ã‚‹ï¼Ž"encoding" ãƒ—ãƒ©ã‚°ãƒžã�«ã‚ˆã‚‹æŒ‡å®šã�Œå˜åœ¨ã�— ã�ªã�„å ´å�ˆã�¯ï¼Œã�¾ã�£ã�Ÿã��å¤‰æ�›ã‚’è¡Œã‚�ã�ªã�„ï¼Ž

CONSTRUCTOR
"GDBM_File" ã�¨å�Œä¸€ã�®æ›¸å¼�ã�§ï¼Œé€£æƒ³é…�åˆ—ã‚’ä½œæˆ�ã�§ã��ã‚‹ï¼Ž

    tie( %hash, 'Juman::GDBM_File', $dbfile, &GDBM_WRCREAT, 0640 );

ç¬¬5å¼•æ•°ã�«ã�¯ï¼Œãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ã‚’æ–°è¦�ä½œæˆ�ã�™ã‚‹å ´å�ˆã�®ãƒ•ã‚¡ã‚¤ãƒ«å±žæ€§ã�ŒæŒ‡ å®šã�•ã‚Œã�¦ã�„ã‚‹ï¼Ž

ç¬¬5å¼•æ•°ã‚’çœ�ç•¥ã�—ã�Ÿå ´å�ˆã�¯ï¼Œ"DB_File" äº’æ�›ã�®æ›¸å¼�ã�Œä½¿ã‚�ã‚Œã�¦ã�„ã‚‹ã�¨è¦‹ã�ªã�•ã‚Œ ã‚‹ï¼Ž

    tie( %hash, 'Juman::GDBM_File', $dbfile, &O_CREAT );

ã�“ã�®å ´å�ˆï¼Œãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ã‚’é–‹ã��ãƒ¢ãƒ¼ãƒ‰ã‚’æŒ‡å®šã�—ã�¦ã�„ã‚‹ç¬¬4å¼•æ•°ã�«ã�¯ï¼Œ "O_CREAT", "O_RDWR" ã�ªã�© "DB_File" å½¢å¼�ã�®ãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ã‚’é–‹ã��æ™‚ã�¨å�Œã�˜ æŒ‡å®šã‚’ä½¿ã�†ï¼Žãƒ‡ãƒ¼ã‚¿ãƒ™ãƒ¼ã‚¹ãƒ•ã‚¡ã‚¤ãƒ«ã‚’æ–°è¦�ä½œæˆ�ã�™ã‚‹å ´å�ˆã�®ãƒ•ã‚¡ã‚¤ãƒ«å±žæ€§ã�¯ï¼Œ "umask" ã�®è¿”ã‚Šå€¤ã�‹ã‚‰è‡ªå‹•çš„ã�«ç®—å‡ºã�•ã‚Œã‚‹ï¼Ž

SEE ALSO

•   GDBM_File

•   perltie

AUTHOR

åœŸå±‹ é›…ç¨” <tsuchiya@pine.kuee.kyoto-u.ac.jp>

POD ERRORS
Hey! The above document had some coding errors, which are explained below:

Around line 22:
    Non-ASCII character seen before =encoding in '$hash{"æ·»å—"}'. Assuming CP1252

Around line 149:
    =over without closing =back