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
index 27c8391..4c24806 100644 (file)
@@ -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;