1. Install perl-devel
2. install Text::Hunspell
3. Use Text::Hunspell like:
---------------------------------------------------------------
#!/usr/bin/perl -w
# first install perl-devel
#  then install Text::Hunspell
#
use Text::Hunspell;
use Data::Dumper;
    my $speller = Text::Hunspell->new("/home/en/tyuk/dtest/qt/examples/richedit2/lang/magyar.aff", "/home/en/tyuk/dtest/qt/examples/richedit2/lang/magyar.dic");

    die unless $speller;


    # Set some options
    my $word = "ltl";
    my $word1 = "lotl";
    my $misspelled = "lo";

    # check a word
    print $speller->check( $word )
          ? "$word found\n"
          : "$word not found!\n";
    print $speller->check( $word1 )
          ? "$word1 found\n"
          : "$word1 not found!\n";

    # lookup up words
    my @suggestions;
    @suggestions = $speller->suggest( $misspelled );
    print Data::Dumper::Dumper( \@suggestions ); 

    $speller->delete($speller);
-------------------------------------------------------

4. Result:
------------------------------------------------
[en@noname aspell]$ perl testhun.pl
ltl found
lotl not found!
$VAR1 = [
          'l',
          'lt',
          'ls',
          'lz',
          'ln',
          'lg',
          'lk',
          'li',
          'l',
          'ld',
          'lm'
        ];
[en@noname aspell]$        
---------------------------------------------------
