Which Perl built-ins cannot be overridden in CORE::GLOBAL?

后端 未结 4 761
长情又很酷
长情又很酷 2020-12-05 19:58

The Overriding Built-in Functions section of the perlsub documentation provides

There is a second method that is sometimes applicable when you wish to

4条回答
  •  悲&欢浪女
    2020-12-05 20:13

    There was an earlier question on SO lamenting the difficulty of mocking the filetest operators (-f, -d, -x, ...)

提交回复
热议问题