programming-examples/perl/Datatype/To disable integer math within a block.pl

11 lines
161 B
Perl
Raw Normal View History

2019-11-15 12:59:38 +01:00
#!/usr/bin/perl -w
do {
# Use integer math inside block only.
no integer;
for ($i = 0; $i < 10; $i++) {
print "$i\n";
}
}