Closed schwernbot closed 10 years ago
From: @schwern Date: Friday Mar 30, 2012 at 13:02 GMT Orig: https://github.com/Test-More/test-more/issues/268
Any call to open risks setting $!. This can innocently affect tests, such as autodie (see #266).
open
$!
Rather than localize $! everywhere open is used, write a role to provide an open method which does this. See TB2::CanTry for a similar example.
From: @schwern Date: Friday Mar 30, 2012 at 13:02 GMT Orig: https://github.com/Test-More/test-more/issues/268
Any call to
open
risks setting$!
. This can innocently affect tests, such as autodie (see #266).Rather than localize $! everywhere open is used, write a role to provide an
open
method which does this. See TB2::CanTry for a similar example.