For Programmers: Free Programming Magazines  


Home > Archive > PERL Modules > March 2006 > Proposed Module: Compress::AsciiFlate









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Proposed Module: Compress::AsciiFlate
Jimi-Carlo Bukowski-Wills

2006-03-10, 7:55 am

NAME

Compress::AsciiFlate

SYNOPSIS

use Compress::AsciiFlate;
my $caf = new Compress::AsciiFlate;

# maybe set up some parameters here...
# there are plenty of things to play with, e.g:
# minimum word-size for encoding etc...

my $text = 'hello hello hello';
$caf->deflate($text);
print $text; # prints "_hello 1 1"
$caf->inflate($text);
print $text; # prints "hello hello hello"


This module sort of uses Number::Nary, but I couldn't
install the prerequisits on my laptop, so I made a
wee, self-contained, purely-perl emulation of it and
put the sub straight into the package...
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com