Adding content
sub run { my $self = shift; my %blog; my @in = $self->file->slurp(iomode => '<:encoding(UTF-8)'); # boring code that fills %blog with the files content my $blog = $self->schema->resultset('Blog')->create(\%blog); say "created blog post ".$blog->id; }