Neutron Jack has asked for the wisdom of the Perl Monks concerning the following question:
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, LIST
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: $_ as default printf arg fails
by toolic (Bishop) on Mar 21, 2013 at 00:17 UTC | |
by BillKSmith (Monsignor) on Mar 21, 2013 at 14:20 UTC | |
|
Re: $_ as default printf arg fails
by kcott (Archbishop) on Mar 21, 2013 at 07:55 UTC | |
|
Re: $_ as default printf arg fails
by LanX (Saint) on Mar 21, 2013 at 08:35 UTC | |
|
Re: $_ as default printf arg fails
by ww (Archbishop) on Mar 21, 2013 at 01:22 UTC | |
|
Re: $_ as default printf arg fails
by nvivek (Vicar) on Mar 21, 2013 at 04:40 UTC |