"Black Perl" is a code poem written using the Perl programming language. It was posted anonymously to Usenet on April 1, 1990, and is popular among Perl programmers as a piece of Perl poetry. Written in Perl 3, the poem is able to be executed as a program.
"Black Perl" has been discussed in several scholarly works, and is considered an example of generative literature, a genre of electronic literature.