Seconding this: Perl::Critic is simply wrong here. The primary risk of two-argument open is the possibility of a "strange" filename improperly triggering the magic (How about a "file" named 'rm -rf / |'?), but in this case the filename is a literal constant and that is not possible.
This is a bug in Perl::Critic — your particular use of the two-argument syntax is fine.
In reply to Re^2: Three argument version of open '>-' (updated)
by jcb
in thread Three argument version of open '>-' (updated)
by choroba
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |