| 1 |
use Test::More qw(no_plan); |
| 2 |
use strict; |
| 3 |
use warnings; |
| 4 |
|
| 5 |
use autobox::Core; |
| 6 |
|
| 7 |
is_deeply ["hi there"->split(qr/ */)], [qw(h i t h e r e)]; |
| 8 |
|
| 9 |
my $arrayref = "hi there"->split(qr/ */); |
| 10 |
|
| 11 |
is ref $arrayref, 'ARRAY', "Returns arrayref in scalar context"; |
| 12 |
|