Is there a problem in perl 5.12.2 using splice on @ISA?

前端 未结 2 1179
灰色年华
灰色年华 2021-02-20 07:35

The following is a debug session on Perl 5.12. Does this make any sense? Does UNIVERSAL cache a version of the @ISA variable, which if forever uses the

2条回答
  •  庸人自扰
    2021-02-20 08:04

    Yes, there is a cache. But if you can modify @ISA without invalidating that cache, I would consider it a bug in perl.

    Does your problem disappear if you add the line @ISA = @ISA; after your splice line?

提交回复
热议问题