in reply to Temp file on piped open to less
It doesn't involve any temp files on the Perl side. I can't speak for any version of more and less, much less all of them.
Note that nothing prevents to the OS from swapping memory pages to disk.