When I run this code using Perl v5.14.2 on Ubuntu:
I get: Missing argument in printf at ./p line 5.#! /usr/bin/perl use strict; use warnings; $_ = 42; printf "%d\n";
However, perldoc -f printf says that it should work:
printf FILEHANDLE FORMAT, LISTIn reply to $_ as default printf arg fails by Neutron Jack
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |