emptygif
Language: English

All languages and frameworks

Perl one-liner Perl

A Perl snippet for Perl one-liner that answers requests for /pixel.gif with the empty GIF, decoded once at startup.

Perl one-liner Perl

File
pixel.sh
perl -MMIME::Base64 -e 'binmode STDOUT; print decode_base64("R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==")' > pixel.gif

We ran this snippet and compared the bytes it returned.

Official site: Perl one-liner

More in Perl