-
Notifications
You must be signed in to change notification settings - Fork 5
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
feature: warn if called in void context #8
Comments
Great idea. Want to send a patch? :-) |
Yep. |
Probably with |
|
Do you have any preference for a module to capture warnings in the testsuite? I can also directly hook |
Hook |
Fixed by #9 |
pushd
is so magic that it is easy to forget to call it in scalar context (as the variable is normally not used in the rest of the scope).It would be a helpful addition to check if
pushd
/tempd
/preserve
are called in void context (!defined wantarray
) and warn.The text was updated successfully, but these errors were encountered: