Geoffrey Young <[EMAIL PROTECTED]> wrote:
>hi all
>
>before it gets too late I would like to change t_cmp() to
>
>  t_cmp($received, $expected, $comment);
>
>so that test writers can feel at home in either environment.
>
>for the most part the change would be transparent to users as long as their
>tests pass.  the only exception is qr// tests, which would error out now and
>force a recode.  there's not much we can do about that except to make the
>switch sooner rather than later I guess.

[EMAIL PROTECTED]:~ % perl -e '$a = qr/this/; print ref $a;' && echo
Regexp

Perhaps do a test and swap the arguments if the first is a Regexp, as
well as issue a deprecation warning.
-- 
James Smith <[EMAIL PROTECTED]>, 979-862-3725
Texas A&M CIS Operating Systems Group, Unix

Reply via email to