reverse LIST In list context, returns a list value consisting of the ele- ments of LIST in the opposite order. In scalar context, con- catenates the elements of LIST and returns a string value with all characters in the opposite order. print reverse <>; # line tac, last line first undef $/; # for efficiency of <> print scalar reverse <>; # character tac, last line tsrif