develooper Front page | perl.perl5.porters | Postings from April 2010

Re: *foo{SCALAR}

Thread Previous | Thread Next
Aristotle Pagaltzis
April 30, 2010 20:01
Re: *foo{SCALAR}
Message ID:
* Eric Brine <> [2010-05-01 00:10]:
> On Fri, Apr 30, 2010 at 4:55 PM, Nicholas Clark <> wrote:
> > (Given that when I changed the implementation to what we have
> > now, and didn't get it "right", so that sometimes
> > *foo{SCALAR} was undef, at least one module on CPAN did fail
> > tests. One of the YAML modules, IIRC.)
> I'm guessing a lot more modules are unable to do their job
> properly by keeping the existing behaviour than there are
> modules that would be broken by changing it.

Yes! Agree completely. I recall this behaviour stumping me on
several occasions in the past, though any specifics of what I was
trying to do are lost to the mists of time.

Furthermore, I will venture that in all instances of breakage, it
will be not because the broken modules functionally rely on this
behaviour, but because they go out of their way to cope with this
eccentricity. Fixing such breakage will boil down to a removal of
make-work code (which may still not be trivial, naturally).

Aristotle Pagaltzis // <>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About