Logo

Programming-Idioms

History of Idiom 1 > diff from v81 to v82

Edit summary for version 82 by daxim:
[Perl] factual correction, even 5.024 does not by default import "say"

Version 81

2019-09-27, 09:45:17

Version 82

2019-09-29, 14:03:14

Idiom #1 Print Hello World

Print a literal string on standard output

Idiom #1 Print Hello World

Print a literal string on standard output

Imports
Imports
use 5.010;
Code
say "Hello World";
Code
say 'Hello World';
Comments bubble
Works with newer version of perl like perl 5.24. Requires enabling the 'say' feature in older perls. Prints 'Hello World' and adds a newline
Comments bubble
like print, but automatically adds a newline
Doc URL
http://p3rl.org/say