projects
/
dbsrgits/DBM-Deep.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Hand-applied patch from David Cantrell to add file_offset to allow use of DATA filehandle
[dbsrgits/DBM-Deep.git]
/
lib
/
DBM
/
Deep
/
Array.pm
diff --git
a/lib/DBM/Deep/Array.pm
b/lib/DBM/Deep/Array.pm
index
27c8391
..
4c24806
100644
(file)
--- a/
lib/DBM/Deep/Array.pm
+++ b/
lib/DBM/Deep/Array.pm
@@
-310,7
+310,8
@@
sub SPLICE {
##
# Calculate offset and length of splice
##
- my $offset = shift || 0;
+ my $offset = shift;
+ $offset = 0 unless defined $offset;
if ($offset < 0) { $offset += $length; }
my $splice_length;