Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Protect against polluting $! or $@ with open() #268

Closed
schwern opened this issue Mar 30, 2012 · 0 comments
Closed

Protect against polluting $! or $@ with open() #268

schwern opened this issue Mar 30, 2012 · 0 comments
Assignees

Comments

@schwern
Copy link
Contributor

schwern commented Mar 30, 2012

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.

@ghost ghost assigned schwern Mar 30, 2012
schwern added a commit that referenced this issue Mar 30, 2012
Unfortunately its interface is too complicated to use TB2::CanOpen and its probably
not worth trying to make TB2::CanOpen support it.

For #268
@schwern schwern closed this as completed Mar 30, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant