In the mojolite script for MojoExample, there are the lines below, I want to know what does "=>" mean in "blogstagtags => tags => 'perlsonal'". I think "=>" is delimiter between hash key and value. Can I find the explanation anywhere?
get '/blogs' => sub {
shift->redirect_to(blogstagtags => tags => 'personal'); # Where is blogstagtags defined? #yaohe
# blogstagtags is the route name for 'blogs/tag/(*tags)' by default #yaohe
};
get '/blogs/tag/(*tags)' => sub {
my $self = shift;
# Specified tags to search for: /tag/one/tag/two/tag/three
my @tags = grep $_ ne 'tag' => split '/' => $self->param('tags');
my @blogs = $self->db->resultset('Blog')->by_tags(@tags) or return $self->redirect_to('blogs');
$self->render('blogs/index', blogs => [@blogs],);
};