| 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 $string = 'HELLO'; |
| 8 | $sscip-perl cpan autobox-Core 1.33 main/s().tring->s('^HE', 'Hu'); |
| 9 | |
| 10 | isscip-perl cpan autobox-Core 1.33 main/is(). $string, 'HuLLO'; |
| 11 | |
| 12 | okscip-perl cpan autobox-Core 1.33 main/ok(). $sscip-perl cpan autobox-Core 1.33 main/s().tring->s(qr/LO/, '10') eq 'HuL10'; # using ok() instead of is() to test Want picking up on scalar context |
| 13 | |
| 14 | ok ! $sscip-perl cpan autobox-Core 1.33 main/s().tring->s(qr/LO/, '10'); # testing Want picking up on boolean context |
| 15 | ok ! ! $sscip-perl cpan autobox-Core 1.33 main/s().tring->s(qr/10/, 'lo'); # testing Want picking up on boolean context |
| 16 |