| 1 | #!/usr/bin/env perl |
| 2 | |
| 3 | use autobox::Corescip-perl cpan autobox-Core 1.33 autobox/Core/; |
| 4 | use Test::Morescip-perl cpan autobox-Core 1.33 Test/More/ tests => 3; |
| 5 | |
| 6 | my @numbers = ( 1 .. 10 ); |
| 7 | |
| 8 | isscip-perl cpan autobox-Core 1.33 main/is().( @numbers->first_indexscip-perl cpan autobox-Core 1.33 main/first_index()., 0 ); |
| 9 | isscip-perl cpan autobox-Core 1.33 main/is().( @numbers->first_indexscip-perl cpan autobox-Core 1.33 main/first_index().( sub { $_scip-perl cpan autobox-Core 1.33 main/`@_`.[0] > 9 } ), 9 ); |
| 10 | |
| 11 | isscip-perl cpan autobox-Core 1.33 main/is().( @numbers->first_indexscip-perl cpan autobox-Core 1.33 main/first_index().( qr/^2/ ), 1 ); |