in reply to CORE::GLOBAL::* for auditing which files are read and written?

It can not be done that way, at least not in a completely shameless manner.

The current support for prototypes in perl 5 has some misfeatures that make impossible to replace a good number of builtins without limiting how they can be used (stat, truncate, etc.).

And the file test operators (i.e. -f), can not be overrided at all.

Maybe playing with the runops loop... thinking about new features for Devel::NYTProf?

Replies are listed 'Best First'.
Re^2: CORE::GLOBAL::* for auditing which files are read and written?
by tim.bunce (Scribe) on Nov 07, 2008 at 17:33 UTC
    I thought the prototype issue had been resolved (in relation to getting autodie to work).

    "thinking about new features for Devel::NYTProf?" - no, this is unrelated. Though I am thinking of adding an option to NYTProf to make builtins get treated as calls to xsubs.