Subject: | Uncorrect handling of array dereference? |
Date: | Tue, 12 May 2015 15:28:55 +0200 |
To: | bug-Quantum-Superpositions [...] rt.cpan.org |
From: | "Vittore F. Scolari" <vittore.scolari [...] pasteur.fr> |
I think that this code gives unexpected output to me:
perl -MQuantum::Superpositions -e '$c = any([1,2],[3,4]); print
eigenstates($c),"\n"; $c = $c->[0] < 3; print eigenstates($c),"\n"'
to me the first line prints:
ARRAY(0xc4e148)ARRAY(0xc62c70)
while the second print nothing
I would expected an output like
ARRAY(0xc4e148)ARRAY(0xc62c70)
ARRAY(0xc4e148)
Details:
perl 5, version 20, subversion 2 (v5.20.2) built for x86_64-linux
Quantum-Superpositions-2.02
Thank you,
Vittore F. Scolari
-------
Postdoctoral Researcher,
Spatial regulation of genomes,
Institut Pasteur,
Paris (France)