in reply to uninitialized value in numeric eq (==)

Try changing:

sub create_table ($) { my($schema_in) = $_;

to:

sub create_table { my ($schema_in) = @_;

See if that helps.

Read perlvar for more info on the difference between $_ and @_ (they are very different, even though they look similar)

--
3dan