in reply to about "say" function
The say function is not imported into the main namespace (Packages) by default. The shortest chain to importing it is via the feature pragma: use feature 'say';. say was implemented in Perl v5.10, but if it was imported by default, there would be the risk of backward compatibility problems and spurious warnings for perfectly fine old code. Alternatively, you can use say without importing it by giving the full package: CORE::say();.
#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: about "say" function
by lightoverhead (Pilgrim) on Aug 12, 2014 at 17:18 UTC | |
by ikegami (Patriarch) on Aug 12, 2014 at 18:16 UTC | |
by adefaria (Beadle) on Aug 13, 2014 at 15:01 UTC | |
by kennethk (Abbot) on Aug 13, 2014 at 15:05 UTC | |
by AppleFritter (Vicar) on Aug 13, 2014 at 17:16 UTC | |
by ikegami (Patriarch) on Aug 13, 2014 at 19:20 UTC |