The say() function in Perl is like the print() function which displays any string or variable passed within it as arguments. The only difference between say() and print() is that it automatically appends a new line at the end of every output string.