ãã£ãã given-when æ§æãã¤ãããã®ã ããã以ä¸ã®ããã« Dispatcher ãæ¸ãã°ããã®ã§ã¯ãªãããã¨ãã話ããã£ãã®ã§å®éã¤ãã£ã¦ã¿ã¦ããã®ã ãããã®ãããªæ¸ãæ¹ã¯é常ã«ä½éã§ãããã¨ãããã£ã(too slow)ã use 5.010; sub dispatch { my ($class, $c) = @_; given ([$c->request->method, $c->request->path_info]) { when (['GET', '/']) { return call("Root", 'index'); } ... } } 以ä¸ã®ãããªãã³ããã¼ã¯ã¹ã¯ãªããããããã㨠25åé ãã use strict; use warnings; use Benchmark qw/:all/; use 5.010; my $method = "GET"; my
{{#tags}}- {{label}}
{{/tags}}