Hello all,
This is really strange. I am trying to use Moose::Autobox in a class. I
can't seem to figure out what I am doing wrong. Here's my code (way
simplified):
package Foo;
use Moose;
use Method::Signatures;
use Moose::Autobox;
method foo {
my $data = {
foo = 1,
bar = 2,
I'm resending this because I wasn't subscribed before. Sorry.
-- Forwarded message --
From: fREW Schmidt fri...@gmail.com
Date: May 3, 2009 2:14 AM
Subject: Weird Moose::Autobox behaviour
To: moose@perl.org
Hello all,
This is really strange. I am trying to use Moose::Autobox
On Sun, May 03, 2009 at 10:24:54AM -0500, fREW Schmidt wrote:
[ %{$data}-values-map-(sub { $_ + 1 }) ]
don't dereference $data; your sanity check example uses a hashref, not a hash,
so it works fine.
hdp.
On Sun, May 3, 2009 at 2:22 PM, Hans Dieter Pearcey h...@pobox.com wrote:
On Sun, May 03, 2009 at 10:24:54AM -0500, fREW Schmidt wrote:
[ %{$data}-values-map-(sub { $_ + 1 }) ]
don't dereference $data; your sanity check example uses a hashref, not a
hash,
so it works fine.
I must
On Sun, May 3, 2009 at 11:56 PM, fREW Schmidt fri...@gmail.com wrote:
On Sun, May 3, 2009 at 2:22 PM, Hans Dieter Pearcey h...@pobox.com wrote:
On Sun, May 03, 2009 at 10:24:54AM -0500, fREW Schmidt wrote:
[ %{$data}-values-map-(sub { $_ + 1 }) ]
don't dereference $data; your sanity