tee(3pm)

✨ NAME ✨

Filter::tee β€” it's the tee source filter, bestie πŸ’– (this is the tee(3pm) page, from the User Contributed Perl Documentation crew 🫢)


🌸 SYNOPSIS 🌸

use Filter::tee 'filename' ;
use Filter::tee '>filename' ;
use Filter::tee '>>filename' ;

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this filter literally copies ALL the text starting from the line after the use in the current source file, and drops it into the file you named with the filename parameter. no cap, that's the whole vibe πŸ’…

By default β€” and also when the filename is prefixed with a '>' β€” the output file gets emptied first if it already exists. so like, fresh start energy ✨

If the output filename is prefixed with '>>', it gets opened for appending instead. nothing gets deleted, we're just adding to the pile 🌈

lowkey iconic: this filter is useful as a debugging aid when you're developing other source filters πŸ‘‘

πŸ’œ AUTHOR πŸ’œ

Paul Marquess πŸŽ€


πŸ“ DATE πŸ“

20th June 1995. (a vintage queen fr fr πŸ‘‘)


that's it, that's the page, mwah πŸ’– this was perl v5.42.3, dated 2026-08-19, tee(3pm) and we ate πŸ’…βœ¨πŸŽ€

πŸ“¦ where this page comes from