#!/usr/local/bin/perl # contributed by James Tolley use strict; use warnings FATAL => 'all'; use Test::More tests => 4; use_ok('HTML::FillInForm'); my $html = qq[
]; my $result = HTML::FillInForm->new->fill( scalarref => \$html, fdat => { two => "new val 2", three => "new val 3", }, ignore_fields => [qw(one two)], ); ok($result =~ /not disturbed.+one/,'ignore 1'); ok($result =~ /not disturbed.+two/,'ignore 2'); ok($result =~ /new val 3.+three/,'ignore 3');