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

Undeclared subs given to print are not detected #11

Open
0racle opened this issue May 15, 2018 · 0 comments
Open

Undeclared subs given to print are not detected #11

0racle opened this issue May 15, 2018 · 0 comments
Labels

Comments

@0racle
Copy link

0racle commented May 15, 2018

It appears this policy fails to detect undeclared subs that are given directly to print or single-arg printf.

The policy fails to detect anything wrong here:

use strict;
use warnings;

print foo();
printf foo();

However, these are detected ok

print {*STDERR} foo();
printf('%s', foo());
say foo();

Version:
This is perl 5, version 26, subversion 1 (v5.26.1) built for x86_64-linux-multi

@petdance petdance added the bug label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants