CzFast

 view release on metacpan or  search on metacpan

test.pl  view on Meta::CPAN

# Before `make install' is performed this script should be runnable with
# `make test'. After `make install' it should work as `perl test.pl'

######################### We start with some black magic to print on failure.

BEGIN { $| = 1; print "1..last_test_to_print\n"; }
END { print "not ok 1\n" unless $loaded; }

use CzFast qw ( &czregexp &czrecode );

$str = 'Seriál krok za krokem vysvìtluje vše potøebné pro tvorbu webovských stránek -- zejména popis jazyka HTML a dalších potøebných dovedností jako tvorba klikacích map, transparentních a animovaných obrázkù atd.';

print "Following text is in windows-1250 encoding, you'll se it corrupted:\n";
print "$str\n\n";

##############################################################################

print "2..iso-8859-2 conversion\n";
print "And now in iso-8859-2 encoding:\n";
print &czrecode ('windows-1250', 'iso-8859-2', $str)."\n";
print "ok 2\n\n";



( run in 0.374 second using v1.01-cache-2.11-cpan-0a6323c29d9 )