in reply to The Zeroeth Principle
Just a few additions/thoughts. In list context like that is called the range operator and has a totaly different fucntion than the flip-flop scalar operator. Also i would consider the use of it the idiom for perl programers, and the
form a leftover from c. It may have its uses but its far hader to read. Also if you want the above loop from 1 to 10 just dofor($i=0;$i<10;$i++) { &do_something($i); }
Thats easier to read than $i + 1 and actualy does what you want it to instead of tweaking it.for($i=1;$i<=10;$i++) { &do_something($i); }
|
|---|