Skip to content

Commit

Permalink
better slurp example
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Jun 25, 2012
1 parent 2f4a23a commit 7a33fad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/Mojo/ByteStream.pm
Expand Up @@ -276,7 +276,7 @@ Size of bytestream.
Alias for L<Mojo::Util/"slurp">.
b("/home/sri/myapp.pl")->slurp->split("\n")->shuffle->join("\n")->say;
b('/home/sri/myapp.pl')->slurp->split("\n")->shuffle->join("\n")->say;
=head2 C<split>
Expand Down
2 changes: 1 addition & 1 deletion lib/ojo.pm
Expand Up @@ -205,7 +205,7 @@ L<Mojo::Message::Response> object.
Turn HTML5/XML input into L<Mojo::DOM> object.
$ perl -Mojo -E 'say x("<div>Hello!</div>")->at("div")->text'
$ perl -Mojo -E 'say x(b("/home/sri/test.html")->slurp)->at("title")->text'
=head1 SEE ALSO
Expand Down

0 comments on commit 7a33fad

Please sign in to comment.