« blib/script/data_structure_tree_test.pl
↑ Summary
blib/script/data_type_number_floating_point_error.pl »
| 1 | #!/usr/bin/env perl | ||
| 2 | |||
| 3 | use Perl::Types; | ||
| 4 | use strict; | ||
| 5 | use warnings; | ||
| 6 | our $VERSION = 0.001_000; | ||
| 7 | |||
| 8 | my nonsigned_integer $uifoo = 5; | ||
| 9 | my nonsigned_integer $uibar = ~($uifoo); | ||
| 10 | print '$uifoo = ' . $uifoo . "\n"; | ||
| 11 | print '$uibar = ' . $uibar . "\n"; | ||
| 12 | |||
| 13 | use integer; | ||
| 14 | |||
| 15 | my integer $ifoo = 5; | ||
| 16 | my integer $ibar = ~($ifoo); | ||
| 17 | print '$ifoo = ' . $ifoo . "\n"; | ||
| 18 | print '$ibar = ' . $ibar . "\n"; | ||
| 19 |