in reply to Re^3: using map
in thread using map
If the format contains no %specifiers, then just what is in the template gets output.
And so printf $_ acts exactly like print $_.
Very clever... until $_ happens to contain something that looks like a printf specifier and it comes back to bite you.
Of course, say ought to be a simple alternative to -l, but a) they made it so darn inconvenient to use
For one-liners, say is actually very convenient to use. Just replace "-e" with "-E".
perl -E"say q(Hello world)"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: using map
by jwkrahn (Abbot) on May 06, 2012 at 07:21 UTC | |
by tobyink (Canon) on May 06, 2012 at 07:24 UTC | |
|
Re^5: using map
by BrowserUk (Patriarch) on May 06, 2012 at 07:32 UTC |