Hi,

This doesn't appear fixed in the svn repository...

The patch prevents a "Can't use string (...) as an ARRAY ref..." error being thrown when you call $entry->delete(attr => $scalar);

Not on-list so please direct any correspondence back at me ;)

Cheers,
--alex
--- Entry.pm.orig       Thu Jul 26 15:31:36 2007
+++ Entry.pm    Thu Jul 26 15:34:15 2007
@@ -227,7 +227,7 @@
 
     if (defined($val) and (!ref($val) or @$val)) {
       my %values;
-      @[EMAIL PROTECTED] = ();
+      @values{(ref($val) ? @$val : $val)} = ();
 
       unless( @{$attrs->{$lc_type}}
         = grep { !exists $values{$_} } @{$attrs->{$lc_type}})

Reply via email to