App-Pod
view release on metacpan or search on metacpan
t/cpan/ojo.pm view on Meta::CPAN
Turn a string into a L<Mojo::URL> object.
$ perl -Mojo -E 'say l("/perldoc")->to_abs(l("https://mojolicious.org"))'
=head2 n
n {...};
n {...} 100;
Benchmark block and print the results to C<STDERR>, with an optional number of iterations, which defaults to C<1>.
$ perl -Mojo -E 'n { say g("mojolicious.org")->code }'
=head2 o
my $res = o('example.com');
my $res = o('http://example.com' => {Accept => '*/*'} => 'Hi!');
my $res = o('http://example.com' => {Accept => '*/*'} => form => {a => 'b'});
my $res = o('http://example.com' => {Accept => '*/*'} => json => {a => 'b'});
( run in 0.786 second using v1.01-cache-2.11-cpan-71847e10f99 )