Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- get '/test' => sub {
- my $self = shift;
- srand;
- my $random_string=rand 10;
- $self->render(text => $random_string."\n");
- };
- [becks@zappa dummy_client]$ curl http://127.0.0.1:3000/test
- 2.54768867119314
- [becks@zappa dummy_client]$ curl http://127.0.0.1:3000/test
- 9.63220070422725
- [becks@zappa dummy_client]$ curl http://127.0.0.1:3000/test
- 6.55116524853842
- [becks@zappa dummy_client]$ curl http://127.0.0.1:3000/test
- 7.47458345330418
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement