Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

say

Like print, but automatically appends a newline after the output.

Behaves identically to print except that a newline character is appended after all output (including any $\ record separator). Requires use feature 'say' or use v5.10 or later in perl5.

Internally delegates to pp_print, which detects OpCode::Say and appends the newline to the correct filehandle.

Synopsis

say "hello world";           # prints "hello world\n"
say STDERR "debug info";
say $fh @data;

See Also

print, printf