sub bioseq :Global { my ( $self, $c ) = @_; my $bio_seq_obj = Bio::Seq->new(); # ... a lot of stuff, finally this: $c->{stash}{bio_seq} = $bio_seq_obj; }