Mojo::Autobox::String - Autobox string methods for Mojo::Autobox
use Mojo::Autobox; # "Trimmed" ' Trimmed '->byte_stream->trim; # "Text" '<p>Text</p>'->dom->at('p')->text; # "world" '{"hello": "world"}'->json->{hello}; # "anchor" 'http://mysite.com/path#anchor'->url->fragment;
String methods for Mojo::Autobox.
Returns an instance of Mojo::Autobox, constructed from the invocant string.
An alias for "byte_stream".
Returns an instance of Mojo::DOM, constructed from the invocant string. Optionally takes a CSS3 selector which is passed to the Mojo::DOM instance's find method.
Parses the invocant string as JSON using "decode_json" in Mojo::JSON and returns the result. Optionally takes a JSON pointer used to delve into the resulting structure using Mojo::JSON::Pointer.
An alias for "json".
Returns an instance of Mojo::URL, constructed from the invocant string.
1 POD Error
The following errors were encountered while parsing the POD:
'=end' without a target?
To install Mojo::Autobox, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mojo::Autobox
CPAN shell
perl -MCPAN -e shell install Mojo::Autobox
For more information on module installation, please visit the detailed CPAN module installation guide.