| 1 | use Test::Morescip-perl cpan autobox-Core 1.33 Test/More/ qw(no_plan); |
| 2 | use strictscip-perl cpan autobox-Core 1.33 strict/; |
| 3 | use warningsscip-perl cpan autobox-Core 1.33 warnings/; |
| 4 | |
| 5 | use autobox::Corescip-perl cpan autobox-Core 1.33 autobox/Core/; |
| 6 | |
| 7 | my %hash = ( foo => 1, bar => 2, baz => 3 ); |
| 8 | |
| 9 | is_deeply [ sortscip-perl cpan autobox-Core 1.33 main/sort(). %hash->valuesscip-perl cpan autobox-Core 1.33 main/values(). ], [ qw( 1 2 3 ) ]; |
| 10 | |
| 11 | my $arrayref = %hash->valuesscip-perl cpan autobox-Core 1.33 main/values().; |
| 12 | |
| 13 | isscip-perl cpan autobox-Core 1.33 main/is(). refscip-perl cpan autobox-Core 1.33 main/ref(). $arrayref, 'ARRAY', "Returns arrayref in scalar context"; |
| 14 |