while (<>) { print "$. $_" if 3 .. 10; }
The above code prints lines 3 to 10 of any input or file given to it. If we change it to "print "$. $_" if 3 ... 10;" it works the same way. How ?
In reply to Range operators .. and ... by vinoth.ree
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |