in reply to Anon. array of refs to a range generated list of scalars.

Interesting stuff ... i don't have an answer, but i did notice something peculiar:
use Data::Dumper; print Dumper [(3,4,5,6)]; print Dumper [(3 .. 6)]; print Dumper [\(3,4,5,6)]; print Dumper [\(3 .. 6)];
The first two prints yield the same results as expected, but the second two yield different results:
[\(3,4,5,6)] yields $VAR1 = [\3,\4,\5,\6];
[\(3  .. 6)] yields $VAR1 = [[3,4,5,6]];
If i had to take a guess, i would say that the range operator is yielding some scwoowey wesults ...

jeffa

shhhh ... be vewy vewy quiet ... i'm hunting bugs ...
  • Comment on (jeffa) Re: Anon. array of refs to a range generated list of scalars.
  • Download Code