perl bug with references



I found an odd behavior.

when I have a reference, let's say it is an array, it seems to pad the
value differently in perl 5.6 vs 5.8:

this worked in perl 5.8 but not perl 5.6:

$ref =~ /^ARRAY/;

for 5.6, I had to change to =~ /^\s*ARRAY/;

could not find anything mentioning this behavior anywhere. I doubt it
is a "feature"

.



Relevant Pages

  • Re: perl bug with references
    ... when I have a reference, let's say it is an array, it seems to pad the ... this worked in perl 5.8 but not perl 5.6: ...
    (comp.lang.perl.misc)
  • Re: perl bug with references
    ... when I have a reference, let's say it is an array, it seems to pad the ... this worked in perl 5.8 but not perl 5.6: ...
    (comp.lang.perl.misc)
  • Re: perl bug with references
    ... when I have a reference, let's say it is an array, it seems to pad the ... this worked in perl 5.8 but not perl 5.6: ...
    (comp.lang.perl.misc)
  • Re: Learning Perl
    ... it should be an array, ... Then they'd be completely inaccessible to beginners. ... that should be my $var. ... so why is it redundant to point out that Perl is different from C here? ...
    (comp.lang.perl.misc)
  • Re: Which is faster - hash or array lookup
    ... I am suite sure that perl is not The Right Tool ... Each player has 5 pieces, and additionally there is a common ... whereas traversing an array looking for $n is slow). ...
    (comp.lang.perl.misc)