On 15 Sep 2009, at 20:49, Dermot wrote: > > $schema->create->($ref) or warn "Error inserting: $@\n"; You want $schema->create($ref). Not the extra '->' in your version.