LJ::text_uncompress

LJ::text_uncompress — Uncompresses a chunk of text, from gzip, if configured for site. Can uncompress a scalarref in place, or return a compressed copy. Won't uncompress unless it finds the gzip magic number at the beginning of the text.

Use

LJ::text_uncompress(text);

Arguments

  • text. either a scalar or scalarref.

Source:

cgi-bin/ljtextutil.pl

Returns:

nothing if given a scalarref (to uncompress in-place), or original/uncompressed value, depending on if test was compressed or not