Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
Syntactic Confectionery Delight
 
PerlMonks  

Tie data hash to DBM file leaving massive cruft?

by punch_card_don (Curate)
on Mar 05, 2013 at 20:26 UTC ( #1021900=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        tie %data_hash, "SDBM_File", "data_dbm_file", O_RDWR|O_CREAT, 0666
    + || die "Cannot open file 'data_dbm_file': $!\n";
        %data_hash = ();
    ...
        }
        untie %data_hash;
        $sth->finish();
    
  2. or download this
    bogA4dxaWfeMo:Namen_
    bogA4dxaWfeMo:Namen_
    ...
    bogA4dxaWfeMo:Namen
    acbogA4dxaWfeMo:Namen
    abogA4dxaWfeMo:Namen
    
  3. or download this
    tie %h, "DB_File", "data", O_RDWR|O_CREAT, 0666, $DB_HASH or die "Cann
    +ot open file 'data': $!\n";
     
    ...
    foreach my $key (sort keys %h) {
        print "<br>$key -> $h{$key}\n";
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1021900]
Approved by moritz
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (7)
As of 2014-04-17 23:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (459 votes), past polls