diff --git a/Changes b/Changes index ac3660a7a3..e56fd5611a 100644 --- a/Changes +++ b/Changes @@ -1,5 +1,5 @@ -7.21 2017-01-20 +7.21 2017-01-21 - Added extract_usage function to Mojo::Util. - Improve getopt function in Mojo::Util to use @ARGV by default. diff --git a/lib/ojo.pm b/lib/ojo.pm index 0f0645e68f..f2fa614198 100644 --- a/lib/ojo.pm +++ b/lib/ojo.pm @@ -119,6 +119,8 @@ L object. Turn string into a L object. + $ perl -Mojo -E 'say r j f("hello.json")->slurp' + =head2 g my $res = g('example.com'); @@ -149,7 +151,7 @@ L object. Encode Perl data structure or decode JSON with L. - $ perl -Mojo -E 'b(j({hello => "world!"}))->spurt("hello.json")' + $ perl -Mojo -E 'f("hello.json")->spurt(j {hello => "world!"})' =head2 n @@ -187,7 +189,7 @@ L object. Dump a Perl data structure with L. - perl -Mojo -E 'say r(g("example.com")->headers->to_hash)' + perl -Mojo -E 'say r g("example.com")->headers->to_hash' =head2 t @@ -215,7 +217,7 @@ L object. Turn HTML/XML input into L object. - $ perl -Mojo -E 'say x(b("test.html")->slurp)->at("title")->text' + $ perl -Mojo -E 'say x(f("test.html")->slurp)->at("title")->text' =head1 SEE ALSO