Re: perl bug with references
- From: "A. Sinan Unur" <1usa@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 28 Feb 2007 03:17:17 GMT
"dt" <ppc@xxxxxxxxxxxxxx> wrote in news:1172628837.171444.221380
@p10g2000cwp.googlegroups.com:
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"
Don't use regexes when the humble eq operator would suffice.
Please post a short but complete script that demonstrates the behavior.
Sinan
--
A. Sinan Unur <1usa@xxxxxxxxxxxxxxxxxxx>
(remove .invalid and reverse each component for email address)
comp.lang.perl.misc guidelines on the WWW:
http://augustmail.com/~tadmc/clpmisc/clpmisc_guidelines.html
.
- References:
- perl bug with references
- From: dt
- perl bug with references
- Prev by Date: Re: DocumentHTML ?
- Next by Date: Expect and xterm
- Previous by thread: perl bug with references
- Next by thread: Re: perl bug with references
- Index(es):
Relevant Pages
|