#!/usr/bin/env perl # # Write a script to implement Lempel–Ziv–Welch (LZW) compression algorithm. The # script should have method to encode/decode algorithm. The wiki page explains # the compression algorithm very nicely. # # (https://en.wikipedia.org/wiki/Lempel%E2%80%93Ziv%E2%80%93Welch). ################################################################################ use strict; use warnings;