Skip to content

Commit

Permalink
use relative paths for oneliner examples
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jul 16, 2012
1 parent f7b258d commit d670f15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/ByteStream.pm
Expand Up @@ -284,7 +284,7 @@ Alias for L<Mojo::Util/"slurp">.
Alias for L<Mojo::Util/"spurt">.
b('/home/sri/foo.html')->slurp->html_unescape->spurt("/home/sri/bar.html");
b('/home/sri/foo.html')->slurp->html_unescape->spurt('/home/sri/bar.html');
=head2 C<split>
Expand Down
4 changes: 2 additions & 2 deletions lib/ojo.pm
Expand Up @@ -159,7 +159,7 @@ L<Mojo::Message::Response> object.
Encode Perl data structure or decode JSON with L<Mojo::JSON>.
$ perl -Mojo -E 'b(j({hello => "world!"}))->spurt("/home/sri/hello.json")'
$ perl -Mojo -E 'b(j({hello => "world!"}))->spurt("hello.json")'
=head2 C<o>
Expand Down Expand Up @@ -207,7 +207,7 @@ L<Mojo::Message::Response> object.
Turn HTML5/XML input into L<Mojo::DOM> object.
$ perl -Mojo -E 'say x(b("/home/sri/test.html")->slurp)->at("title")->text'
$ perl -Mojo -E 'say x(b("test.html")->slurp)->at("title")->text'
=head1 SEE ALSO
Expand Down

0 comments on commit d670f15

Please sign in to comment.