in reply to Using pack/unpack for compression?

I guess you'll fare better with one of the Compress methods.

Replies are listed 'Best First'.
Re^2: Using pack/unpack for compression?
by LanX (Saint) on Dec 05, 2008 at 15:07 UTC
    You're absolutely right, if it was for a serious application...

    ... but it's for fun! 8 )

    Would be lovely to deflate an asciigraphic with just one or two commands in the shell.

    Cheers Rolf

    UPDATE: simple example for run-length decoding with RegEx
    DB<93> $_=" /10 20\\10\n<10 8LO2K! 8 >10\n \\10 20/10"; DB<94> s/(.)(\d+)/$1x$2/ge;print ////////// \\\\\\\\\\ <<<<<<<<<< LOOK! >>>>>>>>>> \\\\\\\\\\ //////////