| 1 | package ojoBox; | ||
| 2 | |||
| 3 | require ojo; | ||
| 4 | require Mojo::Autobox; | ||
| 5 | |||
| 6 | sub import { | ||
| 7 | Mojo::Autobox->import; | ||
| 8 | goto &ojo::import; | ||
| 9 | } | ||
| 10 | |||
| 11 | 1; | ||
| 12 | |||
| 13 | =head1 NAME | ||
| 14 | |||
| 15 | ojoBox - One-liners with the powers of ojo and Mojo::Autobox | ||
| 16 | |||
| 17 | =head1 SYNOPSIS | ||
| 18 | |||
| 19 | $ perl -MojoBox -E 'g("http://mojolicio.us")->dom->find("a")->each(sub{$_->{href}->url->host->b->say})' | ||
| 20 | |||
| 21 | =head1 DESCRIPTION | ||
| 22 | |||
| 23 | Enables L<Mojo::Autobox> and L<ojo> for use in one-liners. | ||
| 24 |