Naming a route allows you to reference it later if you want to dynamically generate a URL. In your example, you can do this later in your code:
my $link = $self->url_for( 'cities_new_form' )
and $linkwill be automatically populated with a URL ending in /cities/new. You can get fancy if your route has dynamic parts. For instance:
$r->route( '/cities/:cityname' )
->via( 'get' )
->to( controller => 'cities', action => 'new_form' )
->name( 'cities_new_form' );
Then you can create a url like
my $link = $self->url_for( 'cities_new_form', cityname => 'newyork' );
$link /cities/newyork.
, , .
, , - . , , .
. Mojolicious.