[Wellington-pm] Roundup of last night's meeting
Grant McLean
grant at mclean.net.nz
Thu Oct 27 16:36:59 PDT 2016
On Fri, 2016-10-28 at 11:40 +1300, Florent Mara wrote:
> Since I am here, maybe somebody could explain me what I am doing wrong
> here:
>
> my $cust_levels = ['Inner Span', 'End Span'];
> my $mirror = $object->set('array', $cust_levels); # Sets a mirroring variable in a different object.
> is($mirror->[0], $cust_levels->[0], 'Got the expected array element');
>
> Results in
> # Failed test 'Got the expected array element'
> # got: 'Inner Span'
> # expected: '"Inner Span"'
Wow, that is odd. It seems to be telling us that somewhere in the
course of doing its job, the set method successfully copied the values
from $cust_levels and then corrupted the source data by adding double
quotes.
Be sure to let us know what it was when you work it out :-)
Cheers
Grant
More information about the Wellington-pm
mailing list