Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 72401122ad1518f4dff4af88349d6891 > files > 47

perl-CGI-FormMagick-0.910.0-1mdv2010.0.noarch.rpm

#!/usr/bin/perl -wT 

# Copyright (c) 2000-2001 Kirrily Robert <skud@cpan.org>
# Copyright (c) 2000-2002 Mitel Networks Corporation
# This software is distributed under the same licenses as Perl itself;
# see the file COPYING for details.

use strict;
use lib "../lib";
use CGI::FormMagick;
use Data::Dumper;

my $fm = new CGI::FormMagick();

$fm->display();
$fm->finishbutton(0);

sub say_hello {
    my $cgi  = shift;
    my $name = $cgi->param('name');
    my $greeting = $fm->localise("Hello") . ", $name";
    print qq(<h2>$greeting</h2>);
    return 1;
}