A crude hack sometimes used by gung ho p5 testers is to redefine
perl built-in functions. For example:

    *CORE::GLOBAL::read = sub (*\$$;$) { return undef };

to test read failures (and so boost your Devel::Cover score :-).
This technique is not very convenient (must be in a BEGIN block).
Moreover, some p5 functions (e.g. print) cannot be overridden.

I was wondering how/if p6 will support the overriding of built-in
functions (I imagine QA would be the main use for this).


Find local movie times and trailers on Yahoo! Movies.

Reply via email to