> 
> 
> On Mon, Jul 01, 2002 at 06:23:35PM -0400, Parker, Brian  wrote:
> > That makes sense.  I bet you're right. I wonder if 'sort' could be a
> > no-op method for a scalar to handle this case.
> 
> That would probably be a good idea.
> 

OK, I vote for the following patch.  Looks like someone had the same idea for the 
'item' method.  Sorry, I don't have a way to test a change to the .xs file.

$ diff -Naur orig_Stash.pm Stash.pm
--- orig_Stash.pm       2002-07-02 19:07:06.000000000 -0500
+++ Stash.pm    2002-07-02 19:07:20.000000000 -0500
@@ -51,6 +51,7 @@
 };

 $SCALAR_OPS = {
+    'sort'    => sub {   $_[0] },
     'item'    => sub {   $_[0] },
     'list'    => sub { [ $_[0] ] },
     'hash'    => sub { { value => $_[0] } },


regards,
Brian


Reply via email to