I think it would be useful if guess_encoding (and friends) would silently
ignore suspects that are undef or ''.
The scenario is this: I have a "constant" list of suspects, plus one more
suspect that is sometimes needed and sometimes not needed. It would be
convenient if I could call guess_encodings with the same args every time
(without having to copy/create a new list every time).
my @asSuspectAlways = qw( shiftjis utf-8 );
my $sSuspectMaybe = $iEuc ? 'euc-jp' : '';
my $oDecoder = guess_encodings($sData, $sSuspectMaybe, @asSuspectAlways);
--
- - Martin 'Kingpin' Thurn