Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [tlug] Encoding::Guess and perl 5.6



On 06/05/06, Ian MacLean <imaclean@example.com> wrote:

The Encoding::Guess module works a treat but unfortunately for this project we
are restricted to perl 5.6 for various reasons and it requires 5.7.2 or
greater.

An alternate approach would be to just try Encoding::Guess with 5.6
and see why it does not work. Maybe you can back-port it, using a
trick like:

eval "require 5.7.2";
if ($@) {
   # do 5.6-specific stuff here
}

I would imagine the authors of E::G would be pleased to roll such a
change into their module, provided it is implemented cleanly.

Cheers,
Josh

Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links