| 1 | package Lowu; | ||||||||||
| 2 | 93 | $Lowu::VERSION = '2.028002'; | |||||||||
| 3 | 93 | ▶ | use strictures 2; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 93 | ▶ | use parent 'List::Objects::WithUtils'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | sub import { | ||||||||||
| 8 | 93 | ▶ | my ($class, @funcs) = @_; | ||||||||
|
Subroutine
import: called CC=2 SCAR=6.9
| |||||||||||
| 9 | 93 | ▶ | @funcs = 'all' unless @funcs; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 10 | 93 | $class->SUPER::import( | |||||||||
| 11 | +{ | ||||||||||
| 12 | import => [ @funcs ], | ||||||||||
| 13 | to => scalar(caller), | ||||||||||
| 14 | } | ||||||||||
| 15 | ) | ||||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 93 | ▶ | |||||||||
|
Branch: 1 branch
| |||||||||||
| 19 | qq[I'm not sorry, on account of all the typing I've saved myself ;-)\n] | ||||||||||
| 20 | unless caller; | ||||||||||
| 21 | 93 | 1; | |||||||||
| 22 | |||||||||||
| 23 | =pod | ||||||||||
| 24 | |||||||||||
| 25 | =for Pod::Coverage import | ||||||||||
| 26 | |||||||||||
| 27 | =head1 NAME | ||||||||||
| 28 | |||||||||||
| 29 | Lowu - Shortcut for importing all of List::Objects::WithUtils | ||||||||||
| 30 | |||||||||||
| 31 | =head1 SYNOPSIS | ||||||||||
| 32 | |||||||||||
| 33 | # Same as: | ||||||||||
| 34 | # use List::Objects::WithUtils ':all'; | ||||||||||
| 35 | use Lowu; | ||||||||||
| 36 | |||||||||||
| 37 | =head1 DESCRIPTION | ||||||||||
| 38 | |||||||||||
| 39 | A short-to-type way to get all of L<List::Objects::WithUtils>, including | ||||||||||
| 40 | autoboxing. | ||||||||||
| 41 | |||||||||||
| 42 | If you like, you can specify params as if calling C<use | ||||||||||
| 43 | List::Objects::WithUtils>: | ||||||||||
| 44 | |||||||||||
| 45 | # Get array() and immarray() only: | ||||||||||
| 46 | use Lowu 'array', 'immarray'; | ||||||||||
| 47 | |||||||||||
| 48 | =head1 AUTHOR | ||||||||||
| 49 | |||||||||||
| 50 | Jon Portnoy <avenj@cobaltirc.org> | ||||||||||
| 51 | |||||||||||
| 52 | =cut | ||||||||||