»

LJ::text_compress

LJ::text_compress — Compresses a chunk of text, to gzip, if configured for site. Can compress a scalarref in place, or return a compressed copy. Won't compress if value is too small, already compressed, or size would grow by compressing.

Use

LJ::text_compress(text);

Arguments

  • text. 

Source:

cgi-bin/ljlib.pl

Returns:

nothing if given a scalarref (to compress in-place), or original/compressed value, depending on site config