NAME
    FML::Config::Convert -- tiny non object-style variable expansion tool.

SYNOPSIS
        my $in  = new FileHandle $src;
        my $out = new FileHandle "> $dst.$$";

        if (defined $in && defined $out) {
            &FML::Config::Convert::convert($in, $out, $config);

            $out->close();
            $in->close();

            rename("$dst.$$", $dst) || croak("fail to rename $dst");
        }
        else {
            croak("fail to open $src") unless defined $in;
            croak("fail to open $dst") unless defined $out;
        }

DESCRIPTION
    Installer needs variable expansion. This module provides variable
    expansion for __variable__ style string.

METHODS
  convert($in, $out, $config)
    conversion filter. The source is given by file handle $in, output is
    specified as file handle $out. Specify HASH_REF $config as source of {
    key => value }.

  convert_file($src, $dst, $config)
    convert() wrapper for files.

CODING STYLE
    See "http://www.fml.org/software/FNF/" on fml coding style guide.

AUTHOR
    Ken'ichi Fukamachi

COPYRIGHT
    Copyright (C) 2001,2002,2003,2004,2005 Ken'ichi Fukamachi

    All rights reserved. This program is free software; you can redistribute
    it and/or modify it under the same terms as Perl itself.

HISTORY
    FML::Config::Convert first appeared in fml8 mailing list driver package.
    See "http://www.fml.org/" for more details.

