Help for this page

Select Code to Download


  1. or download this
      # old and busted
      my $record = $db{some_key};
    ...
    
      # new hotness
      $db{some_key}[2] += 100;
    
  2. or download this
    #!/usr/bin/perl 
    use strict;
    ...
    tie (%hash, 'MLDBM', 'testmldbm', O_RDWR, 0640) or die $!;
    print "@{$hash{'value1'}}[0, 1, 2]\n";
    untie %hash;