unless (&check_name($app{"first_name"})) {
undef $app{"first_name"};
push (@errors, "Helpful message...");
}
####
sub print_application {
header,
start_html,
table({-border=>'0' -class=>'boxed'},
Tr(
[
td([b('First Name:'), "$app{'first_name'}"])
]
),
p("Value is", $app{'first_name'}),
pre(
Dumper \@errors,
Dumper \%app
),
end_html;
}
####
A form element with the value "nameCheckFailsIfNumbersPresent12345" in a table, and...
Value is # <- undef here has it should be. But not above?
$VAR1 = [
'Names must be between two and forty total characters, start with an initial capitol, and may only contact alphabetical characters, a dash, or an apostrophe.'
];
$VAR2 = '$VAR1 = {
\'first_name\' => undef
};
';