[system] / trunk / webwork-modperl / lib / WeBWorK / DB / Driver / GDBM.pm Repository:
ViewVC logotype

Diff of /trunk/webwork-modperl/lib/WeBWorK/DB/Driver/GDBM.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 807 Revision 808
12=cut 12=cut
13 13
14use strict; 14use strict;
15use warnings; 15use warnings;
16use GDBM_File; 16use GDBM_File;
17use Carp;
17 18
18use constant STYLE => "hash"; 19use constant STYLE => "hash";
19 20
20# GDBM settings 21# GDBM settings
21use constant MAX_TIE_ATTEMPTS => 30; 22use constant MAX_TIE_ATTEMPTS => 30;
79# hash-style methods 80# hash-style methods
80################################################################################ 81################################################################################
81 82
82sub hash($) { 83sub hash($) {
83 my ($self) = @_; 84 my ($self) = @_;
84 die "hash not tied" 85 croak "hash not tied"
85 unless tied %{$self->{hash}}; 86 unless tied %{$self->{hash}};
86 return $self->{hash}; 87 return $self->{hash};
87} 88}
88 89
891; 901;

Legend:
Removed from v.807  
changed lines
  Added in v.808

aubreyja at gmail dot com
ViewVC Help
Powered by ViewVC 1.0.9